File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- namespace Micro \Framework \Kernel \Plugin \ Boot ;
3
+ namespace Micro \Framework \Kernel \Boot ;
4
4
5
5
use Micro \Component \DependencyInjection \Autowire \ContainerAutowire ;
6
6
use Micro \Component \DependencyInjection \Container ;
7
- use Micro \Framework \Kernel \Plugin \ApplicationPluginInterface ;
8
7
use Micro \Framework \Kernel \Plugin \DependencyProviderInterface ;
9
8
use Micro \Framework \Kernel \Plugin \PluginBootLoaderInterface ;
9
+ use Psr \Container \ContainerInterface ;
10
10
11
11
class DependencyProviderBootLoader implements PluginBootLoaderInterface
12
12
{
13
13
/**
14
14
* @var Container
15
15
*/
16
- private readonly Container $ container ;
16
+ private readonly ContainerInterface $ container ;
17
17
18
18
/**
19
19
* @param Container $container
@@ -32,11 +32,11 @@ public function __construct(Container $container)
32
32
* @TODO: uncomment at 2.0 version
33
33
* {@inheritDoc}
34
34
*/
35
- public function boot (ApplicationPluginInterface $ applicationPlugin ): void
35
+ public function boot (object $ applicationPlugin ): void
36
36
{
37
- // if(!($applicationPlugin instanceof DependencyProviderInterface)) {
38
- // return;
39
- // }
37
+ if (!($ applicationPlugin instanceof DependencyProviderInterface)) {
38
+ return ;
39
+ }
40
40
41
41
$ applicationPlugin ->provideDependencies ($ this ->container );
42
42
}
Original file line number Diff line number Diff line change 4
4
5
5
use Micro \Component \DependencyInjection \Container ;
6
6
7
+ /**
8
+ * @TODO: Remove extends for 2.0 version
9
+ */
7
10
interface DependencyProviderInterface extends ApplicationPluginInterface
8
11
{
9
12
/**
You can’t perform that action at this time.
0 commit comments