Skip to content

Commit 9c35c1a

Browse files
committed
Stabilization
1 parent 3468a2c commit 9c35c1a

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

src/Plugin/Boot/DependencyProviderBootLoader.php renamed to src/Boot/DependencyProviderBootLoader.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<?php
22

3-
namespace Micro\Framework\Kernel\Plugin\Boot;
3+
namespace Micro\Framework\Kernel\Boot;
44

55
use Micro\Component\DependencyInjection\Autowire\ContainerAutowire;
66
use Micro\Component\DependencyInjection\Container;
7-
use Micro\Framework\Kernel\Plugin\ApplicationPluginInterface;
87
use Micro\Framework\Kernel\Plugin\DependencyProviderInterface;
98
use Micro\Framework\Kernel\Plugin\PluginBootLoaderInterface;
9+
use Psr\Container\ContainerInterface;
1010

1111
class 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
}

src/Plugin/DependencyProviderInterface.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
use Micro\Component\DependencyInjection\Container;
66

7+
/**
8+
* @TODO: Remove extends for 2.0 version
9+
*/
710
interface DependencyProviderInterface extends ApplicationPluginInterface
811
{
912
/**

0 commit comments

Comments
 (0)