src/ministruts/FrontController.php
public static function processRequest(array $options = []) {
        $controller = self::me();
        $request    = Request::me();
        $response   = Response::me();

        // select Module
        $prefix = $controller->getModulePrefix($request);
        $module = $controller->modules[$prefix];
        $request->setAttribute(MODULE_KEY, $module);

        // get RequestProcessor
        $processor = $controller->getRequestProcessor($module, $options);

        // process Request
        $processor->process($request, $response);

        return $response;
    }
public static function processRequest(array $options = []) {
        $controller = self::me();
        $request    = Request::me();
        $response   = Response::me();

        // select Module
        $prefix = $controller->getModulePrefix($request);
        $module = $controller->modules[$prefix];
        $request->setAttribute(MODULE_KEY, $module);

        // get RequestProcessor
        $processor = $controller->getRequestProcessor($module, $options);

        // process Request
        $processor->process($request, $response);

        return $response;
    }
public static function processRequest ( array $ options = [ ] ) { $ controller = self :: me ( ) ; $ request = Request :: me ( ) ; $ response = Response :: me ( ) ; // select Module $ prefix = $ controller -> getModulePrefix ( $ request ) ; $ module = $ controller -> modules [ $ prefix ] ; $ request -> setAttribute ( MODULE_KEY , $ module ) ; // get RequestProcessor $ processor = $ controller -> getRequestProcessor ( $ module , $ options ) ; // process Request $ processor -> process ( $ request , $ response ) ; return $ response ; }
Process the current HTTP request.

@param  array $options [optional] - runtime options (default: none)

@return Response - respone wrapper
Process the current HTTP request .