src/Matchers/DefaultMatchers.php
public function matchUrl(RequestInterface $request, array $maps)
    {
        $matched = [];

        $uri = (string)$request->getUri();

        /** @var RequestMap $map */
        foreach ($maps as $map) {
            if ((string)$map->getRequest()->getUri() === $uri) {
                $matched[] = $map;
            }
        }

        return $matched;
    }
public function matchUrl(RequestInterface $request, array $maps)
    {
        $matched = [];

        $uri = (string)$request->getUri();

        /** @var RequestMap $map */
        foreach ($maps as $map) {
            if ((string)$map->getRequest()->getUri() === $uri) {
                $matched[] = $map;
            }
        }

        return $matched;
    }
public function matchUrl ( RequestInterface $ request , array $ maps ) { $ matched = [ ] ; $ uri = ( string ) $ request -> getUri ( ) ; /** @var RequestMap $map */ foreach ( $ maps as $ map ) { if ( ( string ) $ map -> getRequest ( ) -> getUri ( ) === $ uri ) { $ matched [ ] = $ map ; } } return $ matched ; }
Match Url.

@param RequestInterface $request
@param array            $maps

@return RequestMap[]
Match Url .