Webiny\Component\Router\Router::appendRoutes PHP Метод

appendRoutes() публичный Метод

Adds a route to the end of the current route collection.
public appendRoutes ( ConfigObject $routes )
$routes Webiny\Component\Config\ConfigObject An instance of ConfigObject holding the routes.
    public function appendRoutes(ConfigObject $routes)
    {
        foreach ($routes as $name => $routeConfig) {
            self::$routeCollection->add($name, $this->loader->processRoute($routeConfig));
        }
        return $this;
    }