Skip to content

Commit b7f3fa7

Browse files
committed
Update v2.x-automation-test for micro/kernel-boot-dependency
1 parent ec73d01 commit b7f3fa7

File tree

3 files changed

+13
-20
lines changed

3 files changed

+13
-20
lines changed

Boot/DependencyProviderBootLoader.php

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@
1111

1212
namespace Micro\Framework\BootDependency\Boot;
1313

14-
use Micro\Component\DependencyInjection\Autowire\AutowireHelperFactory;
15-
use Micro\Component\DependencyInjection\Autowire\AutowireHelperInterface;
16-
use Micro\Component\DependencyInjection\Autowire\ContainerAutowire;
14+
use Micro\Framework\Autowire\AutowireHelperFactory;
15+
use Micro\Framework\Autowire\AutowireHelperInterface;
16+
use Micro\Framework\Autowire\ContainerAutowire;
1717
use Micro\Framework\DependencyInjection\Container;
1818
use Micro\Framework\BootDependency\Plugin\DependencyProviderInterface;
1919
use Micro\Framework\Kernel\Plugin\PluginBootLoaderInterface;
2020
use Psr\Container\ContainerInterface;
2121

22-
class DependencyProviderBootLoader implements PluginBootLoaderInterface
22+
readonly class DependencyProviderBootLoader implements PluginBootLoaderInterface
2323
{
2424
/**
2525
* @var Container
2626
*/
27-
private readonly ContainerInterface $container;
27+
private ContainerInterface $container;
2828

2929
/**
3030
* @param Container $container
@@ -37,14 +37,15 @@ public function __construct(ContainerInterface $container)
3737

3838
$this->container = $container;
3939

40-
$this->container->register(AutowireHelperInterface::class,
41-
fn () => (new AutowireHelperFactory($this->container))
42-
->create()
40+
$this->container->register(
41+
AutowireHelperInterface::class,
42+
fn () => (new AutowireHelperFactory($this->container))->create()
4343
);
4444
}
4545

4646
/**
4747
* @TODO: uncomment at 2.0 version
48+
*
4849
* {@inheritDoc}
4950
*/
5051
public function boot(object $applicationPlugin): void

Tests/Unit/Boot/DependencyProviderBootLoaderTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@
1818

1919
class DependencyProviderBootLoaderTest extends TestCase
2020
{
21-
/**
22-
* @return void
23-
*/
24-
public function testBoot()
21+
public function testBoot(): void
2522
{
2623
$container = new Container();
2724

composer.json

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@
1010
}
1111
],
1212
"require": {
13+
"php": "^8.2",
1314
"micro/autowire": "^2.0",
1415
"micro/kernel": "^2.0"
1516
},
16-
"require-dev": {
17-
"ergebnis/composer-normalize": "^2.34"
18-
},
17+
"minimum-stability": "dev",
1918
"autoload": {
2019
"psr-4": {
2120
"Micro\\Framework\\BootDependency\\": "/"
@@ -25,10 +24,6 @@
2524
]
2625
},
2726
"config": {
28-
"allow-plugins": {
29-
"ergebnis/composer-normalize": true
30-
},
3127
"sort-packages": true
32-
},
33-
"minimum-stability": "dev"
28+
}
3429
}

0 commit comments

Comments
 (0)