public function run()
    {

        $method = strtoupper($this->getRequest()->getMethod());
        $collections = $this->resolveGroupAndWhen(RouteCollector::getRoutes());


        if (!$this->hasAnyRouteInRequestMethod($collections, $method)) {
            $this->callRouteNotFoundCommand();
        }

        $collections = $collections[$method];


        if (false === $return = $this->isThereEquealUrl($collections)) {
            $return = $this->isThereMatchUrl($collections);
        }

        $this->callRouteNotFoundCommand();
        return $return;
    }
public function run()
    {

        $method = strtoupper($this->getRequest()->getMethod());
        $collections = $this->resolveGroupAndWhen(RouteCollector::getRoutes());


        if (!$this->hasAnyRouteInRequestMethod($collections, $method)) {
            $this->callRouteNotFoundCommand();
        }

        $collections = $collections[$method];


        if (false === $return = $this->isThereEquealUrl($collections)) {
            $return = $this->isThereMatchUrl($collections);
        }

        $this->callRouteNotFoundCommand();
        return $return;
    }
public function run ( ) { $ method = strtoupper ( $ this -> getRequest ( ) -> getMethod ( ) ) ; $ collections = $ this -> resolveGroupAndWhen ( RouteCollector :: getRoutes ( ) ) ; if ( ! $ this -> hasAnyRouteInRequestMethod ( $ collections , $ method ) ) { $ this -> callRouteNotFoundCommand ( ) ; } $ collections = $ collections [ $ method ] ; if ( false === $ return = $ this -> isThereEquealUrl ( $ collections ) ) { $ return = $ this -> isThereMatchUrl ( $ collections ) ; } $ this -> callRouteNotFoundCommand ( ) ; return $ return ; }
Run the router and check requested uri

@throws RouteMatchException
@return bool
Run the router and check requested uri