Skip to content

Commit 880d219

Browse files
committed
Merge branch '7.4' into 8.0
* 7.4: Add a missing versionadded directive minor #21259 add missing use in code example
2 parents ab9d5d2 + 9dbae6a commit 880d219

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

routing.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1550,6 +1550,7 @@ This way, the ``product_show`` alias could be deprecated.
15501550
namespace App\Controller;
15511551
15521552
use Symfony\Component\HttpFoundation\Response;
1553+
use Symfony\Component\Routing\Attribute\DeprecatedAlias;
15531554
use Symfony\Component\Routing\Attribute\Route;
15541555
15551556
class ProductController
@@ -1651,6 +1652,10 @@ This way, the ``product_show`` alias could be deprecated.
16511652
)
16521653
;
16531654
1655+
.. versionadded:: 7.3
1656+
1657+
The ``DeprecatedAlias`` class for PHP attributes was introduced in Symfony 7.3.
1658+
16541659
In this example, every time the ``product_show`` alias is used, a deprecation
16551660
warning is triggered, advising you to stop using this route and prefer using ``product_details``.
16561661

0 commit comments

Comments
 (0)