protected function deriveRouteName($route) { $matches = []; preg_match('/(?P<type>rpc|rest)/', $route, $matches); return sprintf('zf-apigility/api/module/%s-service/input-filter', $matches['type']); }