1 | <?php |
||
8 | class LazyServiceFactory |
||
9 | { |
||
10 | /** |
||
11 | * @var LazyLoadingValueHolderFactory |
||
12 | */ |
||
13 | protected $lazyLoadingFactory; |
||
14 | |||
15 | /** |
||
16 | * @param LazyLoadingValueHolderFactory $lazyLoadingFactory |
||
17 | */ |
||
18 | 3 | public function __construct(LazyLoadingValueHolderFactory $lazyLoadingFactory) |
|
22 | |||
23 | /** |
||
24 | * @param string $className |
||
25 | * @param callable $definition |
||
26 | * |
||
27 | * @throws \InvalidArgumentException When $definition callable doesn't return $className instance |
||
28 | * |
||
29 | * @return VirtualProxyInterface |
||
30 | */ |
||
31 | 3 | public function getLazyServiceDefinition(string $className, callable $definition): VirtualProxyInterface |
|
53 | } |
||
54 |