Skip to content

Commit 9dbae6a

Browse files
committed
Merge branch '7.3' into 7.4
* 7.3: Add a missing versionadded directive minor #21259 add missing use in code example
2 parents dac15b6 + 96c1e2d commit 9dbae6a

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
@@ -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+
16791684
In this example, every time the ``product_show`` alias is used, a deprecation
16801685
warning is triggered, advising you to stop using this route and prefer using ``product_details``.
16811686

0 commit comments

Comments
 (0)