| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | 1 | public function __construct(ContainerInterface $container) |
|
| 33 | { |
||
| 34 | 1 | if (!($container instanceof ContainerAutowire)) { |
|
| 35 | 1 | $container = new ContainerAutowire($container); |
|
| 36 | } |
||
| 37 | |||
| 38 | 1 | $this->container = $container; |
|
|
|
|||
| 39 | |||
| 40 | 1 | $this->container->register(AutowireHelperInterface::class, |
|
| 41 | 1 | fn () => (new AutowireHelperFactory($this->container)) |
|
| 42 | 1 | ->create() |
|
| 43 | 1 | ); |
|
| 59 |