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.
1575
1575
namespace App\Controller;
1576
1576
1577
1577
use Symfony\Component\HttpFoundation\Response;
1578
+ use Symfony\Component\Routing\Attribute\DeprecatedAlias;
1578
1579
use Symfony\Component\Routing\Attribute\Route;
1579
1580
1580
1581
class ProductController
@@ -1676,6 +1677,10 @@ This way, the ``product_show`` alias could be deprecated.
1676
1677
)
1677
1678
;
1678
1679
1680
+ .. versionadded :: 7.3
1681
+
1682
+ The ``DeprecatedAlias `` class for PHP attributes was introduced in Symfony 7.3.
1683
+
1679
1684
In this example, every time the ``product_show `` alias is used, a deprecation
1680
1685
warning is triggered, advising you to stop using this route and prefer using ``product_details ``.
1681
1686
You can’t perform that action at this time.
0 commit comments