This repository was archived by the owner on Feb 6, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ matrix:
35
35
- php : 7
36
36
- php : hhvm
37
37
allow_failures :
38
- - php : 7
39
38
- php : hhvm
40
39
41
40
notifications :
@@ -48,7 +47,7 @@ before_install:
48
47
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then composer require --dev --no-update satooshi/php-coveralls:^1.0 ; fi
49
48
50
49
install :
51
- - travis_retry composer install --no-interaction --ignore-platform-reqs
50
+ - travis_retry composer install --no-interaction
52
51
53
52
script :
54
53
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then ./vendor/bin/phpunit --coverage-clover clover.xml ; fi
Original file line number Diff line number Diff line change 18
18
"container-interop/container-interop" : " ~1.0"
19
19
},
20
20
"require-dev" : {
21
- "phpunit/phpunit" : " ~ 4.6" ,
22
- "ocramius/proxy-manager" : " ~1 .0" ,
23
- "squizlabs/php_codesniffer" : " ^2.0@dev " ,
21
+ "phpunit/phpunit" : " ^ 4.6 || ^5.2.10 " ,
22
+ "ocramius/proxy-manager" : " ^1.0 || ^2 .0" ,
23
+ "squizlabs/php_codesniffer" : " ^2.5.1 " ,
24
24
"phpbench/phpbench" : " ^0.10.0"
25
25
},
26
26
"suggest" : {
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