Skip to content

Commit ed38446

Browse files
committed
Fix missing route name on operations attributes
1 parent 8061967 commit ed38446

File tree

14 files changed

+28
-0
lines changed

14 files changed

+28
-0
lines changed

src/Component/src/Metadata/Api/Delete.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ final class Delete extends HttpOperation implements DeleteOperationInterface, Ap
2424
{
2525
public function __construct(
2626
?string $path = null,
27+
?string $routeName = null,
2728
?string $routePrefix = null,
2829
?string $template = null,
2930
?string $shortName = null,
@@ -50,6 +51,7 @@ public function __construct(
5051
parent::__construct(
5152
methods: ['DELETE'],
5253
path: $path,
54+
routeName: $routeName,
5355
routePrefix: $routePrefix,
5456
template: $template,
5557
shortName: $shortName ?? 'delete',

src/Component/src/Metadata/Api/Get.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ final class Get extends HttpOperation implements ShowOperationInterface, ApiOper
2424
{
2525
public function __construct(
2626
?string $path = null,
27+
?string $routeName = null,
2728
?string $routePrefix = null,
2829
?string $template = null,
2930
?string $shortName = null,
@@ -50,6 +51,7 @@ public function __construct(
5051
parent::__construct(
5152
methods: ['GET'],
5253
path: $path,
54+
routeName: $routeName,
5355
routePrefix: $routePrefix,
5456
template: $template,
5557
shortName: $shortName ?? 'get',

src/Component/src/Metadata/Api/GetCollection.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ final class GetCollection extends HttpOperation implements CollectionOperationIn
2424
{
2525
public function __construct(
2626
?string $path = null,
27+
?string $routeName = null,
2728
?string $routePrefix = null,
2829
?string $template = null,
2930
?string $shortName = null,
@@ -50,6 +51,7 @@ public function __construct(
5051
parent::__construct(
5152
methods: ['GET'],
5253
path: $path,
54+
routeName: $routeName,
5355
routePrefix: $routePrefix,
5456
template: $template,
5557
shortName: $shortName ?? 'get_collection',

src/Component/src/Metadata/Api/Patch.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ final class Patch extends HttpOperation implements UpdateOperationInterface, Api
2424
{
2525
public function __construct(
2626
?string $path = null,
27+
?string $routeName = null,
2728
?string $routePrefix = null,
2829
?string $template = null,
2930
?string $shortName = null,
@@ -50,6 +51,7 @@ public function __construct(
5051
parent::__construct(
5152
methods: ['PATCH'],
5253
path: $path,
54+
routeName: $routeName,
5355
routePrefix: $routePrefix,
5456
template: $template,
5557
shortName: $shortName ?? 'patch',

src/Component/src/Metadata/Api/Post.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ final class Post extends HttpOperation implements CreateOperationInterface, ApiO
2424
{
2525
public function __construct(
2626
?string $path = null,
27+
?string $routeName = null,
2728
?string $routePrefix = null,
2829
?string $template = null,
2930
?string $shortName = null,
@@ -50,6 +51,7 @@ public function __construct(
5051
parent::__construct(
5152
methods: ['POST'],
5253
path: $path,
54+
routeName: $routeName,
5355
routePrefix: $routePrefix,
5456
template: $template,
5557
shortName: $shortName ?? 'post',

src/Component/src/Metadata/Api/Put.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ final class Put extends HttpOperation implements UpdateOperationInterface, ApiOp
2424
{
2525
public function __construct(
2626
?string $path = null,
27+
?string $routeName = null,
2728
?string $routePrefix = null,
2829
?string $template = null,
2930
?string $shortName = null,
@@ -50,6 +51,7 @@ public function __construct(
5051
parent::__construct(
5152
methods: ['PUT'],
5253
path: $path,
54+
routeName: $routeName,
5355
routePrefix: $routePrefix,
5456
template: $template,
5557
shortName: $shortName ?? 'put',

src/Component/src/Metadata/ApplyStateMachineTransition.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ final class ApplyStateMachineTransition extends HttpOperation implements UpdateO
2222
public function __construct(
2323
?array $methods = null,
2424
?string $path = null,
25+
?string $routeName = null,
2526
?string $routePrefix = null,
2627
?string $template = null,
2728
?string $shortName = null,
@@ -44,6 +45,7 @@ public function __construct(
4445
parent::__construct(
4546
methods: $methods ?? ['PUT', 'PATCH', 'POST'],
4647
path: $path,
48+
routeName: $routeName,
4749
routePrefix: $routePrefix,
4850
template: $template,
4951
shortName: $shortName ?? $stateMachineTransition ?? 'apply_state_machine_transition',

src/Component/src/Metadata/BulkDelete.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ final class BulkDelete extends HttpOperation implements DeleteOperationInterface
2222
public function __construct(
2323
?array $methods = null,
2424
?string $path = null,
25+
?string $routeName = null,
2526
?string $routePrefix = null,
2627
?string $template = null,
2728
?string $shortName = null,
@@ -44,6 +45,7 @@ public function __construct(
4445
parent::__construct(
4546
methods: $methods ?? ['DELETE', 'POST'],
4647
path: $path,
48+
routeName: $routeName,
4749
routePrefix: $routePrefix,
4850
template: $template,
4951
shortName: $shortName ?? 'bulk_delete',

src/Component/src/Metadata/BulkUpdate.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ final class BulkUpdate extends HttpOperation implements UpdateOperationInterface
2222
public function __construct(
2323
?array $methods = null,
2424
?string $path = null,
25+
?string $routeName = null,
2526
?string $routePrefix = null,
2627
?string $template = null,
2728
?string $shortName = null,
@@ -51,6 +52,7 @@ public function __construct(
5152
parent::__construct(
5253
methods: $methods ?? ['PUT', 'PATCH'],
5354
path: $path,
55+
routeName: $routeName,
5456
routePrefix: $routePrefix,
5557
template: $template,
5658
shortName: $shortName ?? 'bulk_update',

src/Component/src/Metadata/Create.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ final class Create extends HttpOperation implements CreateOperationInterface, St
2525
public function __construct(
2626
?array $methods = null,
2727
?string $path = null,
28+
?string $routeName = null,
2829
?string $routePrefix = null,
2930
?string $template = null,
3031
?string $shortName = null,
@@ -58,6 +59,7 @@ public function __construct(
5859
parent::__construct(
5960
methods: $methods ?? ['GET', 'POST'],
6061
path: $path,
62+
routeName: $routeName,
6163
routePrefix: $routePrefix,
6264
template: $template,
6365
shortName: $shortName ?? 'create',

0 commit comments

Comments
 (0)