public function addRouteFromArray($name, array $routeArray)
    {
        $route = \Parable\Routing\Route::createFromDataArray($routeArray);
        $route->setName($name);

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

        return $this;
    }
public function addRouteFromArray($name, array $routeArray)
    {
        $route = \Parable\Routing\Route::createFromDataArray($routeArray);
        $route->setName($name);

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

        return $this;
    }
public function addRouteFromArray ( $ name , array $ routeArray ) { $ route = \ Parable \ Routing \ Route :: createFromDataArray ( $ routeArray ) ; $ route -> setName ( $ name ) ; $ this -> addRoute ( $ name , $ route ) ; return $ this ; }
Add a route to the routes list from array data.

@param string $name
@param array $routeArray

@return $this
Add a route to the routes list from array data .