Skip to content

Commit dadb5d8

Browse files
committed
minor #36354 Revert to container.dumper.inline_factories=false by default (nicolas-grekas)
This PR was merged into the 5.1-dev branch. Discussion ---------- Revert to container.dumper.inline_factories=false by default | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - As spotted by @Tobion in #36193 (review) Commits ------- 2b6f1e9 Revert to container.dumper.inline_factories=false by default
2 parents 402909f + 2b6f1e9 commit dadb5d8

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/Symfony/Bundle/FrameworkBundle/Kernel/MicroKernelTrait.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,6 @@ public function registerContainerConfiguration(LoaderInterface $loader)
142142
}
143143

144144
$container->setAlias(static::class, 'kernel')->setPublic(true);
145-
146-
if (!$container->hasParameter('container.dumper.inline_factories')) {
147-
$container->setParameter('container.dumper.inline_factories', false);
148-
}
149145
});
150146
}
151147

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public function dump(array $options = [])
157157
$this->asFiles = $options['as_files'];
158158
$this->hotPathTag = $options['hot_path_tag'];
159159
$this->preloadTags = $options['preload_tags'];
160-
$this->inlineFactories = $this->asFiles && $options['inline_factories_parameter'] && (!$this->container->hasParameter($options['inline_factories_parameter']) || $this->container->getParameter($options['inline_factories_parameter']));
160+
$this->inlineFactories = $this->asFiles && $options['inline_factories_parameter'] && $this->container->hasParameter($options['inline_factories_parameter']) && $this->container->getParameter($options['inline_factories_parameter']);
161161
$this->inlineRequires = $options['inline_class_loader_parameter'] && ($this->container->hasParameter($options['inline_class_loader_parameter']) ? $this->container->getParameter($options['inline_class_loader_parameter']) : (\PHP_VERSION_ID < 70400 || $options['debug']));
162162
$this->serviceLocatorTag = $options['service_locator_tag'];
163163

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