From c6509a3e6196077a08b6cfe990d696614ce64ddb Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Fri, 20 Mar 2020 17:44:35 +0100 Subject: [PATCH] [DI] Auto alias compiler pass is now enabled by default --- reference/dic_tags.rst | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/reference/dic_tags.rst b/reference/dic_tags.rst index 3ff4bcac5d3..48e06315969 100644 --- a/reference/dic_tags.rst +++ b/reference/dic_tags.rst @@ -180,10 +180,12 @@ wrapping their names with ``%`` characters). sense most of the times to prevent accessing those services directly instead of using the generic service alias. -.. note:: +.. versionadded:: 5.1 - You need to manually add the ``Symfony\Component\DependencyInjection\Compiler\AutoAliasServicePass`` - compiler pass to the container for this feature to work. + In Symfony versions prior to 5.1, you needed to manually add the + ``Symfony\Component\DependencyInjection\Compiler\AutoAliasServicePass`` + compiler pass to the container for this feature to work. This compiler pass + is now added automatically. console.command ---------------