Skip to content

Commit 0625660

Browse files
bug #57297 [FrameworkBundle] not registered definitions must not be modified (xabbuh)
This PR was merged into the 5.4 branch. Discussion ---------- [FrameworkBundle] not registered definitions must not be modified | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix #57294 | License | MIT Commits ------- c9b117c not registered definitions must not be modified
2 parents 22e469e + c9b117c commit 0625660

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

+4
Original file line numberDiff line numberDiff line change
@@ -1854,6 +1854,10 @@ private function registerSerializerConfiguration(array $config, ContainerBuilder
18541854
$container->setParameter('serializer.default_context', $defaultContext);
18551855
}
18561856

1857+
if (!$container->hasDefinition('serializer.normalizer.object')) {
1858+
return;
1859+
}
1860+
18571861
$arguments = $container->getDefinition('serializer.normalizer.object')->getArguments();
18581862
$context = [];
18591863

0 commit comments

Comments
 (0)