We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e32698a commit 62e8cc8Copy full SHA for 62e8cc8
1 file changed
src/Controller/ApiControllerBase.php
@@ -350,8 +350,15 @@ public function autoParams() {
350
351
// Called class params.
352
$class = get_class($this);
353
+ $annotations = [];
354
$reflectionClass = new \ReflectionClass($class);
- $annotations = $reader->getClassAnnotations($reflectionClass);
355
+ while ($reflectionClass) {
356
+ $annotations = array_merge(
357
+ $reader->getClassAnnotations($reflectionClass),
358
+ $annotations
359
+ );
360
+ $reflectionClass = $reflectionClass->getParentClass();
361
+ }
362
363
// Default params.
364
$empty_query_bag = new ParameterBag([]);
0 commit comments