Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 317b6ed

Browse files
mlebkowskixabbuh
authored andcommitted
add warning about auto_alias is not enabled by default
1 parent fb70182 commit 317b6ed

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

reference/dic_tags.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,11 @@ wrapping their names with ``%`` characters).
353353
sense most of the times to prevent accessing those services directly instead
354354
of using the generic service alias.
355355

356+
.. note::
357+
358+
You need to manually add the ``Symfony\Component\DependencyInjection\Compiler\AutoAliasServicePass``
359+
compiler pass to the container for this feature to work.
360+
356361
console.command
357362
---------------
358363

0 commit comments

Comments
 (0)