Skip to content

Commit c6509a3

Browse files
committed
[DI] Auto alias compiler pass is now enabled by default
1 parent 66bb9e8 commit c6509a3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

reference/dic_tags.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,12 @@ wrapping their names with ``%`` characters).
180180
sense most of the times to prevent accessing those services directly instead
181181
of using the generic service alias.
182182

183-
.. note::
183+
.. versionadded:: 5.1
184184

185-
You need to manually add the ``Symfony\Component\DependencyInjection\Compiler\AutoAliasServicePass``
186-
compiler pass to the container for this feature to work.
185+
In Symfony versions prior to 5.1, you needed to manually add the
186+
``Symfony\Component\DependencyInjection\Compiler\AutoAliasServicePass``
187+
compiler pass to the container for this feature to work. This compiler pass
188+
is now added automatically.
187189

188190
console.command
189191
---------------

0 commit comments

Comments
 (0)