8000 [Routing] Extend old Annotations from new Attributes · symfony/symfony@2d9eb7b · GitHub
[go: up one dir, main page]

Skip to content

Commit 2d9eb7b

Browse files
curry684fabpot
authored andcommitted
[Routing] Extend old Annotations from new Attributes
1 parent 862b701 commit 2d9eb7b

File tree

16 files changed

+27
-11
lines changed

16 files changed

+27
-11
lines changed

src/Symfony/Component/Routing/Annotation/Route.php

Lines changed: 1 addition & 1 deletion
< 10000 td data-grid-cell-id="diff-8d2c9a731331e6989268ffedcf46c801c24fa94ec5faa9d6859e1b7ad2896132-18-18-1" data-selected="false" role="gridcell" style="background-color:var(--bgColor-default);text-align:center" tabindex="-1" valign="top" class="focusable-grid-cell diff-line-number position-relative diff-line-number-neutral left-side">18
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class_exists(\Symfony\Component\Routing\Attribute\Route::class);
1717

18
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
}

src/Symfony/Component/Routing/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

src/Symfony/Component/Serializer/Annotation/Context.php

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

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

src/Symfony/Component/Serializer/Annotation/DiscriminatorMap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class_exists(\Symfony\Component\Serializer\Attribute\DiscriminatorMap::class);
1515

1616
if (false) {
1717
#[\Attribute(\Attribute::TARGET_CLASS)]
18-
class DiscriminatorMap
18+
class DiscriminatorMap extends \Symfony\Component\Serializer\Attribute\DiscriminatorMap
1919
{
2020
}
2121
}

src/Symfony/Component/Serializer/Annotation/Groups.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class_exists(\Symfony\Component\Serializer\Attribute\Groups::class);
1515

1616
if (false) {
1717
#[\Attribute(\Attribute::TARGET_METHOD | \Attribute::TARGET_PROPERTY | \Attribute::TARGET_CLASS)]
18-
class Groups
18+
class Groups extends \Symfony\Component\Serializer\Attribute\Groups
1919
{
2020
}
2121
}

src/Symfony/Component/Serializer/Annotation/Ignore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class_exists(\Symfony\Component\Serializer\Attribute\Ignore::class);
1515

1616
if (false) {
1717
#[\Attribute(\Attribute::TARGET_METHOD | \Attribute::TARGET_PROPERTY)]
18-
final class Ignore
18+
class Ignore extends \Symfony\Component\Serializer\Attribute\Ignore
1919
{
2020
}
2121
}

src/Symfony/Component/Serializer/Annotation/MaxDepth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class_exists(\Symfony\Component\Serializer\Attribute\MaxDepth::class);
1515

1616
if (false) {
1717
#[\Attribute(\Attribute::TARGET_METHOD | \Attribute::TARGET_PROPERTY)]
18-
class MaxDepth
18+
class MaxDepth extends \Symfony\Component\Serializer\Attribute\MaxDepth
1919
{
2020
}
2121
}

src/Symfony/Component/Serializer/Annotation/SerializedName.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class_exists(\Symfony\Component\Serializer\Attribute\SerializedName::class);
1515

1616
if (false) {
1717
#[\Attribute(\Attribute::TARGET_METHOD | \Attribute::TARGET_PROPERTY)]
18-
final class SerializedName
18+
class SerializedName extends \Symfony\Component\Serializer\Attribute\SerializedName
1919
{
2020
}
2121
}

src/Symfony/Component/Serializer/Annotation/SerializedPath.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class_exists(\Symfony\Component\Serializer\Attribute\SerializedPath::class);
1515

1616
if (false) {
1717
#[\Attribute(\Attribute::TARGET_METHOD | \Attribute::TARGET_PROPERTY)]
18-
final class SerializedPath
18+
class SerializedPath extends \Symfony\Component\Serializer\Attribute\SerializedPath
1919
{
2020
}
2121
}

src/Symfony/Component/Serializer/Attribute/Context.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
* @Target({"PROPERTY", "METHOD"})
2222
*
2323
* @author Maxime Steinhausser <maxime.steinhausser@gmail.com>
24+
*
25+
* @final since Symfony 6.4
2426
*/
2527
#[\Attribute(\Attribute::TARGET_CLASS | \Attribute::TARGET_PROPERTY | \Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE)]
2628
class Context

src/Symfony/Component/Serializer/Attribute/DiscriminatorMap.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
* @Target({"CLASS"})
2222
*
2323
* @author Samuel Roze <samuel.roze@gmail.com>
24+
*
25+
* @final since Symfony 6.4
2426
*/
2527
#[\Attribute(\Attribute::TARGET_CLASS)]
2628
class DiscriminatorMap

src/Symfony/Component/Serializer/Attribute/Groups.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
* @Target({"PROPERTY", "METHOD", "CLASS"})
2222
*
2323
* @author Kévin Dunglas <dunglas@gmail.com>
24+
*
25+
* @final since Symfony 6.4
2426
*/
2527
#[\Attribute(\Attribute::TARGET_METHOD | \Attribute::TARGET_PROPERTY | \Attribute::TARGET_CLASS)]
2628
class Groups

src/Symfony/Component/Serializer/Attribute/Ignore.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@
1818
* @Target({"PROPERTY", "METHOD"})
1919
*
2020
* @author Kévin Dunglas <dunglas@gmail.com>
21+
*
22+
* @final since Symfony 6.4
2123
*/
2224
#[\Attribute(\Attribute::TARGET_METHOD | \Attribute::TARGET_PROPERTY)]
23-
final class Ignore
25+
class Ignore
2426
{
2527
}
2628

src/Symfony/Component/Serializer/Attribute/MaxDepth.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
* @Target({"PROPERTY", "METHOD"})
2222
*
2323
* @author Kévin Dunglas <dunglas@gmail.com>
24+
*
25+
* @final since Symfony 6.4
2426
*/
2527
#[\Attribute(\Attribute::TARGET_METHOD | \Attribute::TARGET_PROPERTY)]
2628
class MaxDepth

src/Symfony/Component/Serializer/Attribute/SerializedName.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@
2121
* @Target({"PROPERTY", "METHOD"})
2222
*
2323
* @author Fabien Bourigault <bourigaultfabien@gmail.com>
24+
*
25+
* @final since Symfony 6.4
2426
*/
2527
#[\Attribute(\Attribute::TARGET_METHOD | \Attribute::TARGET_PROPERTY)]
26-
final class SerializedName
28+
class SerializedName
2729
{
2830
public function __construct(private readonly string $serializedName)
2931
{

src/Symfony/Component/Serializer/Attribute/SerializedPath.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@
2323
* @Target({"PROPERTY", "METHOD"})
2424
*
2525
* @author Tobias Bönner <tobi@boenner.family>
26+
*
27+
* @final since Symfony 6.4
2628
*/
2729
#[\Attribute(\Attribute::TARGET_METHOD | \Attribute::TARGET_PROPERTY)]
28-
final class SerializedPath
30+
class SerializedPath
2931
{
3032
private PropertyPath $serializedPath;
3133

0 commit comments

Comments
 (0)
0