src/MVC/Injection/Extension.php
public function loadRoutes()
    {
        $routesJsonFile = $this->configDir . '/routes.json';
        $routesPhpFile = $this->configDir . '/routes.php';
        
        if (file_exists($this->resourcesDir) && file_exists($this->configDir)) {
            if (file_exists($routesJsonFile))
                return json_decode(file_get_contents($routesJsonFile), true);
            elseif (file_exists($routesPhpFile))
                return require_once $routesPhpFile;
        } else {
            return array();
        }
    }
public function loadRoutes()
    {
        $routesJsonFile = $this->configDir . '/routes.json';
        $routesPhpFile = $this->configDir . '/routes.php';
        
        if (file_exists($this->resourcesDir) && file_exists($this->configDir)) {
            if (file_exists($routesJsonFile))
                return json_decode(file_get_contents($routesJsonFile), true);
            elseif (file_exists($routesPhpFile))
                return require_once $routesPhpFile;
        } else {
            return array();
        }
    }
public function loadRoutes ( ) { $ routesJsonFile = $ this -> configDir . '/routes.json' ; $ routesPhpFile = $ this -> configDir . '/routes.php' ; if ( file_exists ( $ this -> resourcesDir ) && file_exists ( $ this -> configDir ) ) { if ( file_exists ( $ routesJsonFile ) ) return json_decode ( file_get_contents ( $ routesJsonFile ) , true ) ; elseif ( file_exists ( $ routesPhpFile ) ) return require_once $ routesPhpFile ; } else { return array ( ) ; } }
Load routes of the Module

@return array
Load routes of the Module