Skip to content

Commit 96866e7

Browse files
committed
Merge branch '3.4' into 4.4
* 3.4: Added reasoning to autowiring in public bundles
2 parents 13ff783 + 419bd3e commit 96866e7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

service_container/autowiring.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,10 @@ Public and Reusable Bundles
592592
---------------------------
593593

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

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

0 commit comments

Comments
 (0)