We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1df9e2d commit 95c3f17Copy full SHA for 95c3f17
DependencyInjection/DunglasJsonLdApiExtension.php
@@ -34,6 +34,16 @@ public function prepend(ContainerBuilder $container)
34
if (isset($container->getParameter('kernel.bundles')['FOSUserBundle'])) {
35
$container->prependExtensionConfig($this->getAlias(), ['enable_fos_user_event_subscriber' => true]);
36
}
37
+
38
+ if (null !== ($frameworkConfiguration = $container->getExtensionConfig('framework'))) {
39
+ if (!isset($frameworkConfiguration['serializer']) || !isset($frameworkConfiguration['serializer']['enabled'])) {
40
+ $container->prependExtensionConfig('framework', [
41
+ 'serializer' => [
42
+ 'enabled' => true
43
+ ]
44
+ ]);
45
+ }
46
47
48
49
/**
0 commit comments