| Total Complexity | 5 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | class ContainerAutowire extends Container |
||
| 17 | { |
||
| 18 | private AutowireHelperFactoryInterface $autowireHelperFactory; |
||
| 19 | |||
| 20 | 19 | public function __construct(private readonly Container $container) |
|
| 23 | } |
||
| 24 | |||
| 25 | 6 | public function get(string $id): object |
|
| 26 | { |
||
| 27 | 6 | return $this->container->get($id); |
|
| 28 | } |
||
| 29 | |||
| 30 | 1 | public function has(string $id): bool |
|
| 31 | { |
||
| 32 | 1 | return $this->container->has($id); |
|
| 33 | } |
||
| 34 | |||
| 35 | 19 | public function register(string $id, callable $service, bool $force = false): void |
|
| 40 | } |
||
| 41 | |||
| 42 | 1 | public function decorate(string $id, callable $service, int $priority = 0): void |
|
| 49 |