This repository was archived by the owner on Feb 6, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 14
14
use Interop \Container \Exception \ContainerException ;
15
15
use ProxyManager \Configuration as ProxyConfiguration ;
16
16
use ProxyManager \Factory \LazyLoadingValueHolderFactory ;
17
+ use ProxyManager \FileLocator \FileLocator ;
17
18
use ProxyManager \GeneratorStrategy \EvaluatingGeneratorStrategy ;
19
+ use ProxyManager \GeneratorStrategy \FileWriterGeneratorStrategy ;
18
20
use Zend \ServiceManager \Exception \ContainerModificationsNotAllowedException ;
19
21
use Zend \ServiceManager \Exception \CyclicAliasException ;
20
22
use Zend \ServiceManager \Exception \InvalidArgumentException ;
@@ -750,6 +752,10 @@ private function createLazyServiceDelegatorFactory()
750
752
751
753
if (! isset ($ this ->lazyServices ['write_proxy_files ' ]) || ! $ this ->lazyServices ['write_proxy_files ' ]) {
752
754
$ factoryConfig ->setGeneratorStrategy (new EvaluatingGeneratorStrategy ());
755
+ } else {
756
+ $ factoryConfig ->setGeneratorStrategy (new FileWriterGeneratorStrategy (
757
+ new FileLocator ($ factoryConfig ->getProxiesTargetDir ())
758
+ ));
753
759
}
754
760
755
761
spl_autoload_register ($ factoryConfig ->getProxyAutoloader ());
You can’t perform that action at this time.
0 commit comments