Skip to content

Commit

Permalink
Merge branch '4.4' into 5.0
Browse files Browse the repository at this point in the history
* 4.4:
  Added reasoning to autowiring in public bundles
  • Loading branch information
javiereguiluz committed Feb 7, 2020
2 parents b676c63 + 96866e7 commit 2e1e19b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions service_container/autowiring.rst
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,10 @@ Public and Reusable Bundles
---------------------------

Public bundles should explicitly configure their services and not rely on autowiring.
Autowiring depends on the services that are available in the container and bundles have
no control over the service container of applications they are included in. You can use
autowiring when building reusable bundles within your company, as you have full control
over all code.

.. _ROT13: https://en.wikipedia.org/wiki/ROT13
.. _service definition prototype: https://symfony.com/blog/new-in-symfony-3-3-psr-4-based-service-discovery

0 comments on commit 2e1e19b

Please sign in to comment.