src/ufw/Setup.php
protected function performRunAction() {
        
        require __DIR__ . "/../../../../../vendor/autoload.php";


        $request = \harpya\ufw\Request::of();

        $appFolder = __DIR__ . '/../../../../../apps/';
        $appFolder = '../apps/';

        $app = \harpya\ufw\ApplicationCli::getInstance([
                    Application::DEF_APPS_PATH => $appFolder,
                    Application::CMP_ROUTER => new \harpya\ufw\Router(),
                    Application::CMP_REQUEST => $request,
                    Application::CMP_CONFIG => \harpya\ufw\Config::of(__DIR__ . '/../../../..')
        ]);

        $app->init();

        $out = $app->run();
        print_r($out);
        exit;
    }
protected function performRunAction() {
        
        require __DIR__ . "/../../../../../vendor/autoload.php";


        $request = \harpya\ufw\Request::of();

        $appFolder = __DIR__ . '/../../../../../apps/';
        $appFolder = '../apps/';

        $app = \harpya\ufw\ApplicationCli::getInstance([
                    Application::DEF_APPS_PATH => $appFolder,
                    Application::CMP_ROUTER => new \harpya\ufw\Router(),
                    Application::CMP_REQUEST => $request,
                    Application::CMP_CONFIG => \harpya\ufw\Config::of(__DIR__ . '/../../../..')
        ]);

        $app->init();

        $out = $app->run();
        print_r($out);
        exit;
    }
protected function performRunAction ( ) { require __DIR__ . "/../../../../../vendor/autoload.php" ; $ request = \ harpya \ ufw \ Request :: of ( ) ; $ appFolder = __DIR__ . '/../../../../../apps/' ; $ appFolder = '../apps/' ; $ app = \ harpya \ ufw \ ApplicationCli :: getInstance ( [ Application :: DEF_APPS_PATH => $ appFolder , Application :: CMP_ROUTER => new \ harpya \ ufw \ Router ( ) , Application :: CMP_REQUEST => $ request , Application :: CMP_CONFIG => \ harpya \ ufw \ Config :: of ( __DIR__ . '/../../../..' ) ] ) ; $ app -> init ( ) ; $ out = $ app -> run ( ) ; print_r ( $ out ) ; exit ; }
Emulate the same as what the web server do, to fulfill a request.
Emulate the same as what the web server do to fulfill a request .