21 $unvalidatedParams = [];
23 foreach ( $this->
getRequest()->getPathParams() as $name => $value ) {
26 $unvalidatedParams[] = $name;
29 $params[] = $validatedParams[$name];
33 if ( $unvalidatedParams ) {
34 throw new LogicException(
35 'Path parameters were not validated: ' . implode(
', ', $unvalidatedParams )