File tree Expand file tree Collapse file tree 3 files changed +16
-3
lines changed
Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 22 "name" : " micro/kernel-boot-dependency" ,
33 "description" : " Micro Framework: Kernel Boot loader - component to provide dependencies" ,
44 "type" : " library" ,
5- "version" : " 1 .0" ,
5+ "version" : " 2 .0" ,
66 "require" : {
77 "micro/kernel" : " ^1" ,
88 "micro/autowire" : " ^1"
Original file line number Diff line number Diff line change 77/**
88 * @TODO: Remove extends for 2.0 version
99 */
10- interface DependencyProviderInterface extends ApplicationPluginInterface
10+ interface DependencyProviderInterface
1111{
1212 /**
1313 * @param Container $container
Original file line number Diff line number Diff line change 33namespace Micro \Framework \Kernel \Plugin \Boot \Test ;
44
55use Micro \Component \DependencyInjection \Container ;
6+ use Micro \Framework \Kernel \Configuration \PluginConfigurationInterface ;
67use Micro \Framework \Kernel \Plugin \ApplicationPluginInterface ;
78use Micro \Framework \Kernel \Plugin \Boot \DependencyProviderBootLoader ;
8- use Micro \Framework \Kernel \Plugin \DependencyProviderInterface ;
99use PHPUnit \Framework \TestCase ;
10+ use Plugin \DependencyProviderInterface ;
1011
1112class DependencyProviderBootLoaderTest extends TestCase
1213{
@@ -34,6 +35,8 @@ public function testBoot()
3435
3536 $ pluginNotDependencyProvider = new class implements ApplicationPluginInterface
3637 {
38+ private readonly PluginConfigurationInterface $ pluginConfiguration ;
39+
3740 public function provideDependencies (Container $ container ): void
3841 {
3942 throw new \Exception ('Not Allowed here ! ' );
@@ -43,6 +46,16 @@ public function name(): string
4346 {
4447 return 'test-plugin ' ;
4548 }
49+
50+ public function configuration (): PluginConfigurationInterface
51+ {
52+ return $ this ->pluginConfiguration ;
53+ }
54+
55+ public function setConfiguration (PluginConfigurationInterface $ pluginConfiguration ): void
56+ {
57+ $ this ->pluginConfiguration = $ pluginConfiguration ;
58+ }
4659 };
4760
4861 foreach ([ $ pluginMock , $ pluginNotDependencyProvider ] as $ plugin ) {
You can’t perform that action at this time.
0 commit comments