Framework/Server/Router.php
/**
     * Instantiate the controller dedicated to the request
     *
     * @param Request $request
     *        	Input Request
     * @return Instance of a controller
     * @throws Exception If the controller cannot be instanciate
     */
Instantiate the controller dedicated to the request
@param Request $request
Input Request
@return Instance of a controller
@throws Exception If the controller cannot be instanciate
Instantiate the controller dedicated to the request @param Request $request Input Request @return Instance of a controller @throws Exception If the controller cannot be instanciate
private function createController($moduleName, $controllerName, Request $request)
    {
        $classController = '\\Modules\\' . $moduleName . "\\ServerRoutes\\" . $controllerName;
        $fileController = 'Modules/' . $moduleName . '/ServerRoutes/' . $controllerName . ".php";
        if (file_exists($fileController)) {
            $controller = new $classController($request);
            return $controller;
        } else {
            throw new \Exception("Unable to find the controller file '$fileController' ");
        }
    }
private function createController ( $ moduleName , $ controllerName , Request $ request ) { $ classController = '\\Modules\\' . $ moduleName . " \\ ServerRoutes \\ " . $ controllerName ; $ fileController = 'Modules/' . $ moduleName . '/ServerRoutes/' . $ controllerName . " .php " ; if ( file_exists ( $ fileController ) ) { $ controller = new $ classController ( $ request ) ; return $ controller ; } else { throw new \ Exception ( " Unable to find the controller file ' $ fileController '  " ) ; } }
Instantiate the controller dedicated to the request
 @param Request $request
          Input Request
 @return Instance of a controller
 @throws Exception If the controller cannot be instanciate
Instantiate the controller dedicated to the request @param Request $request Input Request @return Instance of a controller @throws Exception If the controller cannot be instanciate