Skip to content

Commit 870e005

Browse files
authored
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? Moreover this seems to me nearly a BC.
1 parent 0ecfb40 commit 870e005

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 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)