8000 Fix missing route name on operations attributes · Sylius/SyliusResourceBundle@a0dd5eb · GitHub
[go: up one dir, main page]

Skip to content

Commit a0dd5eb

Browse files
committed
Fix missing route name on operations attributes
1 parent 3992255 commit a0dd5eb

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
?array $routeRequirements = null,
2930
?string $template = null,
@@ -51,6 +52,7 @@ public function __construct(
5152
parent::__construct(
5253
methods: ['DELETE'],
5354
path: $path,
55+
routeName: $routeName,
5456
routePrefix: $routePrefix,
5557
routeRequirements: $routeRequirements,
5658
template: $template,

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
?array $routeRequirements = null,
2930
?string $template = null,
@@ -51,6 +52,7 @@ public function __construct(
5152
parent::__construct(
5253
methods: ['GET'],
5354
path: $path,
55+
routeName: $routeName,
5456
routePrefix: $routePrefix,
5557
routeRequirements: $routeRequirements,
5658
template: $template,

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
?array $routeRequirements = null,
2930
?string $template = null,
@@ -51,6 +52,7 @@ public function __construct(
5152
parent::__construct(
5253
methods: ['GET'],
5354
path: $path,
55+
routeName: $routeName,
5456
routePrefix: $routePrefix,
5557
routeRequirements: $routeRequirements,
5658
template: $template,

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
?array $routeRequirements = null,
2930
?string $template = null,
@@ -51,6 +52,7 @@ public function __construct(
5152
parent::__construct(
5253
methods: ['PATCH'],
5354
path: $path,
55+
routeName: $routeName,
5456
routePrefix: $routePrefix,
5557
routeRequirements: $routeRequirements,
5658
template: $template,

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
?array $routeRequirements = null,
2930
?string $template = null,
@@ -51,6 +52,7 @@ public function __construct(
5152
parent::__construct(
5253
methods: ['POST'],
5354
path: $path,
55+
routeName: $routeName,
5456
routePrefix: $routePrefix,
5557
routeRequirements: $routeRequirements,
5658
template: $template,

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
?array $routeRequirements = null,
2930
?string $template = null,
@@ -51,6 +52,7 @@ public function __construct(
5152
parent::__construct(
5253
methods: ['PUT'],
5354
path: $path,
55+
routeName: $routeName,
5456
routePrefix: $routePrefix,
5557
routeRequirements: $routeRequirements,
5658
template: $template,

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 10000 +
?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
?array $routeRequirements = null,
2728
?string $template = null,
@@ -45,6 +46,7 @@ public function __construct(
4546
parent::__construct(
4647
methods: $methods ?? ['DELETE', 'POST'],
4748
path: $path,
49+
routeName: $routeName,
4850
routePrefix: $routePrefix,
4951
routeRequirements: $routeRequirements,
5052
template: $template,

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
?array $routeRequirements = null,
2728
?string $template = null,
@@ -52,6 +53,7 @@ public function __construct(
5253
parent::__construct(
5354
methods: $methods ?? ['PUT', 'PATCH'],
5455
path: $path,
56+
routeName: $routeName,
5557
routePrefix: $routePrefix,
5658
routeRequirements: $routeRequirements,
5759
template: $template,

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
?array $routeRequirements = null,
3031
?string $template = null,
@@ -59,6 +60,7 @@ public function __construct(
5960
parent::__construct(
6061
methods: $methods ?? ['GET', 'POST'],
6162
path: $path,
63+
routeName: $routeName,
6264
routePrefix: $routePrefix,
6365
routeRequirements: $routeRequirements,
6466
template: $template,

0 commit comments

Comments
 (0)
0