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 2
2
"name" : " micro/kernel-boot-dependency" ,
3
3
"description" : " Micro Framework: Kernel Boot loader - component to provide dependencies" ,
4
4
"type" : " library" ,
5
- "version" : " 1 .0" ,
5
+ "version" : " 2 .0" ,
6
6
"require" : {
7
7
"micro/kernel" : " ^1" ,
8
8
"micro/autowire" : " ^1"
Original file line number Diff line number Diff line change 7
7
/**
8
8
* @TODO: Remove extends for 2.0 version
9
9
*/
10
- interface DependencyProviderInterface extends ApplicationPluginInterface
10
+ interface DependencyProviderInterface
11
11
{
12
12
/**
13
13
* @param Container $container
Original file line number Diff line number Diff line change 3
3
namespace Micro \Framework \Kernel \Plugin \Boot \Test ;
4
4
5
5
use Micro \Component \DependencyInjection \Container ;
6
+ use Micro \Framework \Kernel \Configuration \PluginConfigurationInterface ;
6
7
use Micro \Framework \Kernel \Plugin \ApplicationPluginInterface ;
7
8
use Micro \Framework \Kernel \Plugin \Boot \DependencyProviderBootLoader ;
8
- use Micro \Framework \Kernel \Plugin \DependencyProviderInterface ;
9
9
use PHPUnit \Framework \TestCase ;
10
+ use Plugin \DependencyProviderInterface ;
10
11
11
12
class DependencyProviderBootLoaderTest extends TestCase
12
13
{
@@ -34,6 +35,8 @@ public function testBoot()
34
35
35
36
$ pluginNotDependencyProvider = new class implements ApplicationPluginInterface
36
37
{
38
+ private readonly PluginConfigurationInterface $ pluginConfiguration ;
39
+
37
40
public function provideDependencies (Container $ container ): void
38
41
{
39
42
throw new \Exception ('Not Allowed here ! ' );
@@ -43,6 +46,16 @@ public function name(): string
43
46
{
44
47
return 'test-plugin ' ;
45
48
}
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
+ }
46
59
};
47
60
48
61
foreach ([ $ pluginMock , $ pluginNotDependencyProvider ] as $ plugin ) {
You can’t perform that action at this time.
0 commit comments