1 | <?php |
||
15 | */ |
||
16 | class LazyLoadingValueHolderFactory extends AbstractBaseFactory |
||
17 | { |
||
18 | private LazyLoadingValueHolderGenerator $generator; |
||
|
|||
19 | |||
20 | public function __construct(?Configuration $configuration = null) |
||
21 | 2 | { |
|
22 | parent::__construct($configuration); |
||
23 | |||
24 | $this->generator = new LazyLoadingValueHolderGenerator(); |
||
25 | } |
||
26 | 2 | ||
27 | /** @param mixed[] $proxyOptions */ |
||
28 | 2 | public function createProxy( |
|
29 | string $className, |
||
30 | Closure $initializer, |
||
31 | array $proxyOptions = [] |
||
32 | ) : VirtualProxyInterface { |
||
33 | $proxyClassName = $this->generateProxy($className, $proxyOptions); |
||
34 | 1 | ||
35 | return $proxyClassName::staticProxyConstructor($initializer); |
||
36 | 1 | } |
|
37 | |||
38 | /** |
||
39 | * {@inheritDoc} |
||
46 |