[DI] fix related to preloading
This commit is contained in:
parent
541f80c635
commit
e25c5957e0
@ -2047,7 +2047,7 @@ EOF;
|
||||
|
||||
foreach (get_declared_classes() as $class) {
|
||||
if (0 === strpos($class, 'ComposerAutoloaderInit') && $class::getLoader() === $autoloader[0]) {
|
||||
$file = (new \ReflectionClass($class))->getFileName();
|
||||
$file = \dirname((new \ReflectionClass($class))->getFileName(), 2).'/autoload.php';
|
||||
|
||||
if (preg_match($this->targetDirRegex.'A', $file)) {
|
||||
return $file;
|
||||
|
@ -14,6 +14,10 @@ namespace Symfony\Component\DependencyInjection;
|
||||
use Psr\Cache\CacheItemPoolInterface;
|
||||
use Symfony\Component\ExpressionLanguage\ExpressionLanguage as BaseExpressionLanguage;
|
||||
|
||||
if (!class_exists(BaseExpressionLanguage::class)) {
|
||||
throw new \ReflectionException(BaseExpressionLanguage::class.' not found.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds some function to the default ExpressionLanguage.
|
||||
*
|
||||
|
Reference in New Issue
Block a user