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 11<?php
22
3- namespace Micro \Framework \Kernel \Plugin \ Boot ;
3+ namespace Micro \Framework \Kernel \Boot ;
44
55use Micro \Component \DependencyInjection \Autowire \ContainerAutowire ;
66use Micro \Component \DependencyInjection \Container ;
7- use Micro \Framework \Kernel \Plugin \ApplicationPluginInterface ;
87use Micro \Framework \Kernel \Plugin \DependencyProviderInterface ;
98use Micro \Framework \Kernel \Plugin \PluginBootLoaderInterface ;
9+ use Psr \Container \ContainerInterface ;
1010
1111class DependencyProviderBootLoader implements PluginBootLoaderInterface
1212{
1313 /**
1414 * @var Container
1515 */
16- private readonly Container $ container ;
16+ private readonly ContainerInterface $ container ;
1717
1818 /**
1919 * @param Container $container
@@ -32,11 +32,11 @@ public function __construct(Container $container)
3232 * @TODO: uncomment at 2.0 version
3333 * {@inheritDoc}
3434 */
35- public function boot (ApplicationPluginInterface $ applicationPlugin ): void
35+ public function boot (object $ applicationPlugin ): void
3636 {
37- // if(!($applicationPlugin instanceof DependencyProviderInterface)) {
38- // return;
39- // }
37+ if (!($ applicationPlugin instanceof DependencyProviderInterface)) {
38+ return ;
39+ }
4040
4141 $ applicationPlugin ->provideDependencies ($ this ->container );
4242 }
Original file line number Diff line number Diff line change 44
55use Micro \Component \DependencyInjection \Container ;
66
7+ /**
8+ * @TODO: Remove extends for 2.0 version
9+ */
710interface DependencyProviderInterface extends ApplicationPluginInterface
811{
912 /**
You can’t perform that action at this time.
0 commit comments