File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -44,9 +44,13 @@ public function __construct(
4444 private ContainerInterface $ valueTransformers ,
4545 PropertyMetadataLoaderInterface $ propertyMetadataLoader ,
4646 string $ streamReadersDir ,
47+ ConfigCacheFactoryInterface |string |null $ configCacheFactory = null ,
4748 ?string $ lazyGhostsDir = null ,
48- ?ConfigCacheFactoryInterface $ configCacheFactory = null ,
4949 ) {
50+ if (\is_string ($ configCacheFactory )) {
51+ $ lazyGhostsDir = $ configCacheFactory ;
52+ $ configCacheFactory = null ;
53+ }
5054 $ this ->streamReaderGenerator = new StreamReaderGenerator ($ propertyMetadataLoader , $ streamReadersDir , $ configCacheFactory );
5155 $ this ->instantiator = new Instantiator ();
5256 $ this ->lazyInstantiator = new LazyInstantiator ($ lazyGhostsDir );
You can’t perform that action at this time.
0 commit comments