Skip to content

Commit 18bba71

Browse files
curry684fabpot
authored andcommitted
[Routing] Extend old Annotations from new Attributes
1 parent ba1b0dc commit 18bba71

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Annotation/Route.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class_exists(\Symfony\Component\Routing\Attribute\Route::class);
1717

1818
if (false) {
1919
#[\Attribute(\Attribute::IS_REPEATABLE | \Attribute::TARGET_CLASS | \Attribute::TARGET_METHOD)]
20-
class Route
20+
class Route extends \Symfony\Component\Routing\Attribute\Route
2121
{
2222
}
2323
}

Attribute/Route.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
*
2121
* @author Fabien Potencier <fabien@symfony.com>
2222
* @author Alexander M. Turek <me@derrabus.de>
23+
*
24+
* @final since Symfony 6.4
2325
*/
2426
#[\Attribute(\Attribute::IS_REPEATABLE | \Attribute::TARGET_CLASS | \Attribute::TARGET_METHOD)]
2527
class Route

0 commit comments

Comments
 (0)