10000 Mentioned the short syntax for XML config of service factories by javiereguiluz · Pull Request #9214 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Mentioned the short syntax for XML config of service factories #9214

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 7, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Mentioned the short syntax for XML config of service factories
  • Loading branch information
javiereguiluz committed Feb 6, 2018
commit eafe44a82a4da9ccfc9b4d315996609c88fe1c4a
6 changes: 6 additions & 0 deletions service_container/factories.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ configure the service container to use the
<service id="AppBundle\Email\NewsletterManager">
<!-- call the static method -->
<factory class="AppBundle\Email\NewsletterManagerStaticFactory" method="createNewsletterManager" />

<!-- starting from Symfony 3.3, if the factory class is the same as the service
class, you can omit the 'class' attribute and define just the 'method' attribute:

<factory method="createNewsletterManager" />
-->
</service>
</services>
</container>
Expand Down
0