File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
src/Symfony/Component/DependencyInjection/Dumper Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -303,8 +303,6 @@ public function dump(array $options = [])
303
303
$ this ->asFiles = false ;
304
304
305
305
if ($ preload && null !== $ autoloadFile = $ this ->getAutoloadFile ()) {
306
- $ autoloadFile = substr ($ this ->export ($ autoloadFile ), 2 , -1 );
307
-
308
306
$ code [$ options ['class ' ].'.preload.php ' ] = <<<EOF
309
307
<?php
310
308
@@ -2048,11 +2046,7 @@ private function getAutoloadFile(): ?string
2048
2046
2049
2047
foreach (get_declared_classes () as $ class ) {
2050
2048
if (0 === strpos ($ class , 'ComposerAutoloaderInit ' ) && $ class ::getLoader () === $ autoloader [0 ]) {
2051
- $ file = \dirname ((new \ReflectionClass ($ class ))->getFileName (), 2 ).'/autoload.php ' ;
2052
-
2053
- if (preg_match ($ this ->targetDirRegex .'A ' , $ file )) {
2054
- return $ file ;
2055
- }
2049
+ return \dirname ((new \ReflectionClass ($ class ))->getFileName (), 2 ).'/autoload.php ' ;
2056
2050
}
2057
2051
}
2058
2052
}
You can’t perform that action at this time.
0 commit comments