File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1
1
The Symfony 3.3 DI Container Changes Explained (autowiring, _defaults, etc)
2
2
===========================================================================
3
3
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
5
5
notice some big changes: ``_defaults ``, ``autowiring ``, ``autoconfigure `` and more.
6
6
These features are designed to *automate * configuration and make development faster,
7
7
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:
597
597
598
598
# app/config/legacy_aliases.yml
599
599
services :
600
+ _defaults :
601
+ public : true
600
602
# aliases so that the old service ids can still be accessed
601
603
# remove these if/when you are not fetching these directly
602
604
# from the container via $container->get()
You can’t perform that action at this time.
0 commit comments