src/main/php/routing/Routing.php
private function getApplicable(CalledUri $calledUri, array $interceptors): array
    {
        $applicable = [];
        foreach ($interceptors as  $interceptor) {
            if ($calledUri->satisfies($interceptor['requestMethod'], $interceptor['path'])) {
                $applicable[] = $interceptor['interceptor'];
            }
        }

        return $applicable;
    }
private function getApplicable(CalledUri $calledUri, array $interceptors): array
    {
        $applicable = [];
        foreach ($interceptors as  $interceptor) {
            if ($calledUri->satisfies($interceptor['requestMethod'], $interceptor['path'])) {
                $applicable[] = $interceptor['interceptor'];
            }
        }

        return $applicable;
    }
private function getApplicable ( CalledUri $ calledUri , array $ interceptors ) : array { $ applicable = [ ] ; foreach ( $ interceptors as $ interceptor ) { if ( $ calledUri -> satisfies ( $ interceptor [ 'requestMethod' ] , $ interceptor [ 'path' ] ) ) { $ applicable [ ] = $ interceptor [ 'interceptor' ] ; } } return $ applicable ; }
calculates which interceptors are applicable for given request method

@param   \stubbles\webapp\routing\CalledUri  $calledUri
@param   array[]                             $interceptors   list of interceptors to check
@return  array
calculates which interceptors are applicable for given request method