src/Charcoal/App/Module/AbstractModule.php
public function setupRoutes()
    {
        if (!isset($this->routeManager)) {
            $config = $this->config();
            $routes = (isset($config['routes']) ? $config['routes'] : [] );

            $this->routeManager = new RouteManager([
                'config' => $routes,
                'app'    => $this->app(),
                'logger' => $this->logger
            ]);

            $this->routeManager->setupRoutes();
        }

        return $this;
    }
public function setupRoutes()
    {
        if (!isset($this->routeManager)) {
            $config = $this->config();
            $routes = (isset($config['routes']) ? $config['routes'] : [] );

            $this->routeManager = new RouteManager([
                'config' => $routes,
                'app'    => $this->app(),
                'logger' => $this->logger
            ]);

            $this->routeManager->setupRoutes();
        }

        return $this;
    }
public function setupRoutes ( ) { if ( ! isset ( $ this -> routeManager ) ) { $ config = $ this -> config ( ) ; $ routes = ( isset ( $ config [ 'routes' ] ) ? $ config [ 'routes' ] : [ ] ) ; $ this -> routeManager = new RouteManager ( [ 'config' => $ routes , 'app' => $ this -> app ( ) , 'logger' => $ this -> logger ] ) ; $ this -> routeManager -> setupRoutes ( ) ; } return $ this ; }
Set up the module's routes, via a RouteManager

@return self
Set up the module s routes via a RouteManager