Skip to content

Commit 3bc0628

Browse files
committed
v2.0 RC-1
1 parent 9c35c1a commit 3bc0628

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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"

src/Plugin/DependencyProviderInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/**
88
* @TODO: Remove extends for 2.0 version
99
*/
10-
interface DependencyProviderInterface extends ApplicationPluginInterface
10+
interface DependencyProviderInterface
1111
{
1212
/**
1313
* @param Container $container

tests/unit/Plugin/Boot/DependencyProviderBootLoaderTest.php

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
namespace Micro\Framework\Kernel\Plugin\Boot\Test;
44

55
use Micro\Component\DependencyInjection\Container;
6+
use Micro\Framework\Kernel\Configuration\PluginConfigurationInterface;
67
use Micro\Framework\Kernel\Plugin\ApplicationPluginInterface;
78
use Micro\Framework\Kernel\Plugin\Boot\DependencyProviderBootLoader;
8-
use Micro\Framework\Kernel\Plugin\DependencyProviderInterface;
99
use PHPUnit\Framework\TestCase;
10+
use Plugin\DependencyProviderInterface;
1011

1112
class 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) {

0 commit comments

Comments
 (0)