public function routesTrigger(ModuleEvent $e)
    {
        $module = $e->getModule();

        if (is_callable(array($module, 'getRoutes'))) {
            $routes = $module->getRoutes();
            $this->routes[$e->getModuleName()] = $routes;
        }

        return $this;
    }
public function routesTrigger(ModuleEvent $e)
    {
        $module = $e->getModule();

        if (is_callable(array($module, 'getRoutes'))) {
            $routes = $module->getRoutes();
            $this->routes[$e->getModuleName()] = $routes;
        }

        return $this;
    }
public function routesTrigger ( ModuleEvent $ e ) { $ module = $ e -> getModule ( ) ; if ( is_callable ( array ( $ module , 'getRoutes' ) ) ) { $ routes = $ module -> getRoutes ( ) ; $ this -> routes [ $ e -> getModuleName ( ) ] = $ routes ; } return $ this ; }
Callback for 'routesTrigger' event.

@param ModuleEvent $e

@throws \Exception if the module returns an invalid route type

@return $this
Callback for routesTrigger event .