[HttpKernel] Disable container inlining when legacy inlining has been used
This commit is contained in:
parent
2c2044b34f
commit
4a11683548
@ -120,14 +120,14 @@ class PhpDumper extends Dumper
|
||||
'namespace' => '',
|
||||
'as_files' => false,
|
||||
'debug' => true,
|
||||
'hot_path_tag' => null,
|
||||
'hot_path_tag' => 'container.hot_path',
|
||||
'inline_class_loader_parameter' => 'container.dumper.inline_class_loader',
|
||||
), $options);
|
||||
|
||||
$this->namespace = $options['namespace'];
|
||||
$this->asFiles = $options['as_files'];
|
||||
$this->hotPathTag = $options['hot_path_tag'];
|
||||
$this->inlineRequires = $this->container->hasParameter($options['inline_class_loader_parameter']) && $this->container->getParameter($options['inline_class_loader_parameter']);
|
||||
$this->inlineRequires = $options['inline_class_loader_parameter'] && $this->container->hasParameter($options['inline_class_loader_parameter']) && $this->container->getParameter($options['inline_class_loader_parameter']);
|
||||
|
||||
if (0 !== strpos($baseClass = $options['base_class'], '\\') && 'Container' !== $baseClass) {
|
||||
$baseClass = sprintf('%s\%s', $options['namespace'] ? '\\'.$options['namespace'] : '', $baseClass);
|
||||
|
@ -818,7 +818,7 @@ abstract class Kernel implements KernelInterface, RebootableInterface, Terminabl
|
||||
'file' => $cache->getPath(),
|
||||
'as_files' => true,
|
||||
'debug' => $this->debug,
|
||||
'hot_path_tag' => !$this->loadClassCache ? 'container.hot_path' : null,
|
||||
'inline_class_loader_parameter' => !$this->loadClassCache && !class_exists(ClassCollectionLoader::class, false) ? 'container.dumper.inline_class_loader' : null,
|
||||
));
|
||||
|
||||
$rootCode = array_pop($content);
|
||||
|
Reference in New Issue
Block a user