Skip to content

Commit f71ae6c

Browse files
committed
Fix preload file
1 parent bfe697b commit f71ae6c

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,6 @@ public function dump(array $options = [])
303303
$this->asFiles = false;
304304

305305
if ($preload && null !== $autoloadFile = $this->getAutoloadFile()) {
306-
$autoloadFile = substr($this->export($autoloadFile), 2, -1);
307-
308306
$code[$options['class'].'.preload.php'] = <<<EOF
309307
<?php
310308
@@ -2048,11 +2046,7 @@ private function getAutoloadFile(): ?string
20482046

20492047
foreach (get_declared_classes() as $class) {
20502048
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';
20562050
}
20572051
}
20582052
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy