src/Route.php
private function callWithStrategy()
    {
        if ($this->strategy instanceof StrategyInterface) {
            if ($this->strategy instanceof MatcherAwareInterface) {
                $this->strategy->setMatcher($this->matcher);
            }

            return $this->strategy->call($this);
        }

        throw new BadRouteException(str_replace("%s", get_class($this->strategy), BadRouteException::BAD_STRATEGY));
    }
private function callWithStrategy()
    {
        if ($this->strategy instanceof StrategyInterface) {
            if ($this->strategy instanceof MatcherAwareInterface) {
                $this->strategy->setMatcher($this->matcher);
            }

            return $this->strategy->call($this);
        }

        throw new BadRouteException(str_replace("%s", get_class($this->strategy), BadRouteException::BAD_STRATEGY));
    }
private function callWithStrategy ( ) { if ( $ this -> strategy instanceof StrategyInterface ) { if ( $ this -> strategy instanceof MatcherAwareInterface ) { $ this -> strategy -> setMatcher ( $ this -> matcher ) ; } return $ this -> strategy -> call ( $ this ) ; } throw new BadRouteException ( str_replace ( "%s" , get_class ( $ this -> strategy ) , BadRouteException :: BAD_STRATEGY ) ) ; }
Execute the route action with the given strategy.

@throws BadRouteException
@return mixed
Execute the route action with the given strategy .