JMSSerializerBundle
JMSSerializerBundle copied to clipboard
Point out aliasing object_constructor to doctrine_object_constructor not necessary
After upgrading to the newest release of JMSSerializerBundle, Symfony started throwing
ServiceCircularReferenceException
Circular reference detected for service "jms_serializer.doctrine_object_constructor", path: "jms_serializer.doctrine_object_constructor -> jms_serializer.doctrine_object_constructor"
Upon investigation, I found out this was part of my configuration:
services:
jms_serializer.object_constructor:
alias: jms_serializer.doctrine_object_constructor
public: false
It appears this snippet was necessary before introduction of DependencyInjection/Compiler/DoctrinePass.php
. However, if I understand things correctly, it is not necessary to alias object_constructor to doctrine_object_constructor anymore. Is this correct? If so, it would be nice to update documentation in relation to this.