public function pushRouteCollection(array $routes)
    {
        foreach ($routes as $name => $route) {
            if (!array_key_exists('pattern', $route) || !array_key_exists('defaults', $route)) {
                $this->log('warning', sprintf('Unable to parse the route definition `%s`.', $name));
                continue;
            }

            $this->addRoute($name, $route);
        }

        $this->moveDefaultRoute();
    }
public function pushRouteCollection(array $routes)
    {
        foreach ($routes as $name => $route) {
            if (!array_key_exists('pattern', $route) || !array_key_exists('defaults', $route)) {
                $this->log('warning', sprintf('Unable to parse the route definition `%s`.', $name));
                continue;
            }

            $this->addRoute($name, $route);
        }

        $this->moveDefaultRoute();
    }
public function pushRouteCollection ( array $ routes ) { foreach ( $ routes as $ name => $ route ) { if ( ! array_key_exists ( 'pattern' , $ route ) || ! array_key_exists ( 'defaults' , $ route ) ) { $ this -> log ( 'warning' , sprintf ( 'Unable to parse the route definition `%s`.' , $ name ) ) ; continue ; } $ this -> addRoute ( $ name , $ route ) ; } $ this -> moveDefaultRoute ( ) ; }
Pushes an array of new routes in the collection.

@param array $routes The new routes to push.
Pushes an array of new routes in the collection .