Skip to content

Commit 974ebd5

Browse files
committed
minor #9813 Update 3.3-di-changes.rst (DonCallisto, javiereguiluz)
This PR was merged into the 3.4 branch. Discussion ---------- Update 3.3-di-changes.rst From symfony 3.4 aliases are not public by default https://symfony.com/blog/new-in-symfony-3-4-services-are-private-by-default so docs are not in synch with this change. Maybe would be better to highlight this also in symfony 3.3 docs as a notice? Commits ------- ec76e34 Minor tweak 870e005 Update 3.3-di-changes.rst
2 parents 78d84e7 + ec76e34 commit 974ebd5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

service_container/3.3-di-changes.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
The Symfony 3.3 DI Container Changes Explained (autowiring, _defaults, etc)
22
===========================================================================
33

4-
If you look at the ``services.yml`` file in a new Symfony 3.3 project, you'll
4+
If you look at the ``services.yml`` file in a new Symfony 3.3 or newer project, you'll
55
notice some big changes: ``_defaults``, ``autowiring``, ``autoconfigure`` and more.
66
These features are designed to *automate* configuration and make development faster,
77
without sacrificing predictability, which is very important! Another goal is to make
@@ -597,6 +597,8 @@ to the new id. Create a new ``legacy_aliases.yml`` file:
597597
598598
# app/config/legacy_aliases.yml
599599
services:
600+
_defaults:
601+
public: true
600602
# aliases so that the old service ids can still be accessed
601603
# remove these if/when you are not fetching these directly
602604
# from the container via $container->get()

0 commit comments

Comments
 (0)