8000 minor #7459 add warning about `auto_alias` is not enabled by default … · damienalexandre/symfony-docs@5d2e077 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5d2e077

Browse files
committed
minor symfony#7459 add warning about auto_alias is not enabled by default (mlebkowski)
This PR was submitted for the 3.2 branch but it was merged into the 2.7 branch instead (closes symfony#7459). Discussion ---------- add warning about `auto_alias` is not enabled by default The `auto_alias` feature is described as if it were enabled out of the box refs symfony/symfony#21321 Commits ------- 317b6ed add warning about `auto_alias` is not enabled by default
2 parents fb70182 + 317b6ed commit 5d2e077

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