1 | <?php |
||
11 | class FilterUtils |
||
12 | { |
||
13 | /** |
||
14 | * Returns a list of filters instances, order by priority (higher priority first). |
||
15 | * Note: a filter is an annotation that is also a middleware. |
||
16 | * |
||
17 | * The middleware must have a __invoke method with signature: |
||
18 | * |
||
19 | * __invoke(ServerRequestInterface $request, $next, ContainerInterface $container) |
||
20 | * |
||
21 | * @param ReflectionMethod $refMethod the reference method extended object. |
||
22 | * @param Reader $reader |
||
23 | * |
||
24 | * @return array Array of filter instances sorted by priority. |
||
25 | */ |
||
26 | public static function getFilters(ReflectionMethod $refMethod, Reader $reader) : array |
||
63 | } |
||
64 |