File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 1212namespace Micro \Component \DependencyInjection \Autowire ;
1313
1414use 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
You can’t perform that action at this time.
0 commit comments