public function addOnRoute($name, array $routes)
    {
        $route = $this->findRoute($name);

        // if has subroutes, use the that subroutes, else, create a new subroute.
        if($route->hasSubroutes())
            $route->getSubroutes()->addRoutes($routes);
        else
            $route->setSubroutes($routes);

        return $this;
    }
public function addOnRoute($name, array $routes)
    {
        $route = $this->findRoute($name);

        // if has subroutes, use the that subroutes, else, create a new subroute.
        if($route->hasSubroutes())
            $route->getSubroutes()->addRoutes($routes);
        else
            $route->setSubroutes($routes);

        return $this;
    }
public function addOnRoute ( $ name , array $ routes ) { $ route = $ this -> findRoute ( $ name ) ; // if has subroutes, use the that subroutes, else, create a new subroute. if ( $ route -> hasSubroutes ( ) ) $ route -> getSubroutes ( ) -> addRoutes ( $ routes ) ; else $ route -> setSubroutes ( $ routes ) ; return $ this ; }
Add subroutes on other route.
@param string $name of the route.
@param array $routes
@return $this
Add subroutes on other route .