File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -1575,6 +1575,7 @@ This way, the ``product_show`` alias could be deprecated.
15751575 namespace App\Controller;
15761576
15771577 use Symfony\Component\HttpFoundation\Response;
1578+ use Symfony\Component\Routing\Attribute\DeprecatedAlias;
15781579 use Symfony\Component\Routing\Attribute\Route;
15791580
15801581 class ProductController
@@ -1676,6 +1677,10 @@ This way, the ``product_show`` alias could be deprecated.
16761677 )
16771678 ;
16781679
1680+ .. versionadded :: 7.3
1681+
1682+ The ``DeprecatedAlias `` class for PHP attributes was introduced in Symfony 7.3.
1683+
16791684In this example, every time the ``product_show `` alias is used, a deprecation
16801685warning is triggered, advising you to stop using this route and prefer using ``product_details ``.
16811686
You can’t perform that action at this time.
0 commit comments