throw new RuntimeException("No filter found with alias '{
$filter}'"
);
} $filter =
$this->filtersConfig->aliases
[$filter];
} // Get an instance
$filter =
new $filter();
} if (!
$filter instanceof FilterInterface
) { throw FilterException::
forIncorrectInterface(get_class($filter));
} $request =
clone $this->request;
if ($position === 'before'
) { return static fn (?array
$params = null
) =>
$filter->
before($request,
$params);
} $response =
clone $this->response;
return static fn (?array
$params = null
) =>
$filter->
after($request,
$response,
$params);
}