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 @@ -1550,6 +1550,7 @@ This way, the ``product_show`` alias could be deprecated.
1550
1550
namespace App\Controller;
1551
1551
1552
1552
use Symfony\Component\HttpFoundation\Response;
1553
+ use Symfony\Component\Routing\Attribute\DeprecatedAlias;
1553
1554
use Symfony\Component\Routing\Attribute\Route;
1554
1555
1555
1556
class ProductController
@@ -1651,6 +1652,10 @@ This way, the ``product_show`` alias could be deprecated.
1651
1652
)
1652
1653
;
1653
1654
1655
+ .. versionadded :: 7.3
1656
+
1657
+ The ``DeprecatedAlias `` class for PHP attributes was introduced in Symfony 7.3.
1658
+
1654
1659
In this example, every time the ``product_show `` alias is used, a deprecation
1655
1660
warning is triggered, advising you to stop using this route and prefer using ``product_details ``.
1656
1661
You can’t perform that action at this time.
0 commit comments