Skip to content

Commit 1b2076f

Browse files
committed
minor #15392 Fixing code sample (ThomasLandauer)
This PR was merged into the 4.4 branch. Discussion ---------- Fixing code sample This is now the usual way to do it, right? https://symfony.com/doc/current/configuration.html#configuration-parameters In any case, `->setParameter()` results in: > Call to undefined method "Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator::setParameter()". Commits ------- f16dac0 Fixing code sample
2 parents 3125d8a + f16dac0 commit 1b2076f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

performance.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ container into a single file, which could improve performance when using
8080
// config/services.php
8181
8282
// ...
83-
$container->setParameter('container.dumper.inline_factories', true);
83+
$container->parameters()->set('container.dumper.inline_factories', true);
8484
8585
.. _performance-use-opcache:
8686

0 commit comments

Comments
 (0)