public function addRoutes(array $routes)
    {
        foreach($routes as $name => $routeData)
            $this->addRoute($this->factory->createRoute($this, $name, $routeData));

        return $this;
    }
public function addRoutes(array $routes)
    {
        foreach($routes as $name => $routeData)
            $this->addRoute($this->factory->createRoute($this, $name, $routeData));

        return $this;
    }
public function addRoutes ( array $ routes ) { foreach ( $ routes as $ name => $ routeData ) $ this -> addRoute ( $ this -> factory -> createRoute ( $ this , $ name , $ routeData ) ) ; return $ this ; }
Add routes by the given array.
@param array $routes
@return $this
Add routes by the given array .