You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewRuntimeException(sprintf('There is no builtin action for the %s %s operation. You need to define the controller yourself.', OperationType::SUBRESOURCE, 'GET'));
@@ -135,7 +131,7 @@ public function load($data, $type = null): RouteCollection
135
131
$operation['options'] ?? [],
136
132
$operation['host'] ?? '',
137
133
$operation['schemes'] ?? [],
138
-
['GET'],
134
+
[$operation['method']],
139
135
$operation['condition'] ?? ''
140
136
));
141
137
}
@@ -189,17 +185,9 @@ private function addRoute(RouteCollection $routeCollection, string $resourceClas
189
185
return;
190
186
}
191
187
192
-
if (!isset($operation['method'])) {
193
-
thrownewRuntimeException(sprintf('Either a "route_name" or a "method" operation attribute must exist for the operation "%s" of the resource "%s".', $operationName, $resourceClass));
194
-
}
195
-
196
-
if (null === $controller = $operation['controller'] ?? null) {
thrownewRuntimeException(sprintf('There is no builtin action for the %s %s operation. You need to define the controller yourself.', $operationType, $operation['method']));
thrownewRuntimeException(sprintf('Either a "route_name" or a "method" operation attribute must exist for the operation "%s" of the resource "%s".', $operationName, $resourceClass));
thrownewRuntimeException(sprintf('There is no builtin action for the %s %s operation. You need to define the controller yourself.', $operationType, $operation['method']));
0 commit comments