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 ec0865f commit eafe44aCopy full SHA for eafe44a
service_container/factories.rst
@@ -57,6 +57,12 @@ configure the service container to use the
57
<service id="AppBundle\Email\NewsletterManager">
58
<!-- call the static method -->
59
<factory class="AppBundle\Email\NewsletterManagerStaticFactory" method="createNewsletterManager" />
60
+
61
+ <!-- starting from Symfony 3.3, if the factory class is the same as the service
62
+ class, you can omit the 'class' attribute and define just the 'method' attribute:
63
64
+ <factory method="createNewsletterManager" />
65
+ -->
66
</service>
67
</services>
68
</container>
0 commit comments