public function route()
    {
        $this->routes->rewind();
        while ($this->routes->valid()) {
            $route = $this->routes->current();
            if ($route->run()) {
                return;
            }
            $this->routes->next();
        }

        throw new \RuntimeException("FlexPress router: No route found - please make sure you have setup routes.");

    }
public function route()
    {
        $this->routes->rewind();
        while ($this->routes->valid()) {
            $route = $this->routes->current();
            if ($route->run()) {
                return;
            }
            $this->routes->next();
        }

        throw new \RuntimeException("FlexPress router: No route found - please make sure you have setup routes.");

    }
public function route ( ) { $ this -> routes -> rewind ( ) ; while ( $ this -> routes -> valid ( ) ) { $ route = $ this -> routes -> current ( ) ; if ( $ route -> run ( ) ) { return ; } $ this -> routes -> next ( ) ; } throw new \ RuntimeException ( "FlexPress router: No route found - please make sure you have setup routes." ) ; }
Runs through all the routes and runs them
@author Tim Perry
Runs through all the routes and runs them