19 $unvalidatedParams = [];
21 foreach ( $this->
getRequest()->getPathParams() as $name => $value ) {
24 $unvalidatedParams[] = $name;
27 $params[] = $validatedParams[$name];
31 if ( $unvalidatedParams ) {
32 throw new \LogicException(
33 'Path parameters were not validated: ' . implode(
', ', $unvalidatedParams )
38 return $this->run( ...$params );