Skip to content

Commit b4c0d78

Browse files
authored
V1.7.1 (#12)
* v1.7.1 Fix autowire helper and implements testsing tool * v1.7.1.1 Fix deps * v1.7.0 Fix container deps
1 parent 93da48e commit b4c0d78

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/ContainerAutowire.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
namespace Micro\Component\DependencyInjection\Autowire;
1313

1414
use Micro\Component\DependencyInjection\Container;
15+
use Micro\Component\DependencyInjection\ContainerDecoratorInterface;
16+
use Micro\Component\DependencyInjection\ContainerInterface;
17+
use Micro\Component\DependencyInjection\ContainerRegistryInterface;
1518

1619
/**
1720
* @psalm-suppress UnusedClass
@@ -20,8 +23,11 @@ final class ContainerAutowire extends Container
2023
{
2124
private AutowireHelperFactoryInterface $autowireHelperFactory;
2225

23-
public function __construct(private readonly Container $container)
24-
{
26+
public function __construct(
27+
private readonly ContainerInterface&
28+
ContainerRegistryInterface&
29+
ContainerDecoratorInterface $container,
30+
) {
2531
$this->autowireHelperFactory = new AutowireHelperFactory($this->container);
2632
}
2733

0 commit comments

Comments
 (0)