src/Charcoal/Admin/Config.php
public function setRoutes(array $routes)
    {
        $toIterate = RouteConfig::defaultRouteTypes();
        foreach ($routes as $key => $val) {
            if (in_array($key, $toIterate) && isset($this->routes[$key])) {
                $this->routes[$key] = array_merge($this->routes[$key], $val);
            } else {
                $this->routes[$key] = $val;
            }
        }

        return $this;
    }
public function setRoutes(array $routes)
    {
        $toIterate = RouteConfig::defaultRouteTypes();
        foreach ($routes as $key => $val) {
            if (in_array($key, $toIterate) && isset($this->routes[$key])) {
                $this->routes[$key] = array_merge($this->routes[$key], $val);
            } else {
                $this->routes[$key] = $val;
            }
        }

        return $this;
    }
public function setRoutes ( array $ routes ) { $ toIterate = RouteConfig :: defaultRouteTypes ( ) ; foreach ( $ routes as $ key => $ val ) { if ( in_array ( $ key , $ toIterate ) && isset ( $ this -> routes [ $ key ] ) ) { $ this -> routes [ $ key ] = array_merge ( $ this -> routes [ $ key ] , $ val ) ; } else { $ this -> routes [ $ key ] = $ val ; } } return $ this ; }
Parse the admin module's route configuration.

@see    \Charcoal\App\AppConfig::setRoutes() For a similar implementation.
@param  array $routes The route configuration structure to set.
@return self
Parse the admin module s route configuration .