Pop\Project\Install\Projects::installWeb PHP Метод

installWeb() публичный статический Метод

Install index controller and web config files prompt
public static installWeb ( ) : string
Результат string
    public static function installWeb()
    {
        $msg = \Pop\I18n\I18n::factory()->__('Install index controller and web configuration files?') . ' ([A]pache/[I]IS/[O]ther/[N]o) ';
        echo $msg;
        $input = null;
        while ($input != 'a' && $input != 'i' && $input != 'o' && $input != 'n') {
            if (null !== $input) {
                echo $msg;
            }
            $prompt = fopen("php://stdin", "r");
            $input = fgets($prompt, 32);
            $input = substr(strtolower(rtrim($input)), 0, 1);
            fclose($prompt);
        }
        return $input;
    }