Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
24 | 3 | public function resolve(ContainerInterface $container): VirtualProxyInterface |
|
25 | { |
||
26 | /** @var LazyLoadingValueHolderFactory $factory */ |
||
27 | 3 | $factory = $container->get(LazyLoadingValueHolderFactory::class); |
|
28 | |||
29 | 3 | return $factory->createProxy( |
|
30 | 3 | $this->className, |
|
31 | 3 | function (&$wrappedObject) use ($container): bool { |
|
32 | 1 | $definition = Normalizer::normalize($this->definition, $this->className); |
|
33 | 1 | $wrappedObject = $definition->resolve($container); |
|
34 | |||
35 | 1 | return true; |
|
36 | 3 | } |
|
40 |