Devise\Support\Installer\InstallerController::getApplication PHP Метод

getApplication() публичный Метод

Sets up the application
public getApplication ( ) : Response
Результат Response
    public function getApplication()
    {
        $appName = $this->Input->old('app_name', env('APP_NAME', 'App'));
        $migrations = $this->Input->old('app_migrations', env('APP_MIGRATIONS'));
        $seeds = $this->Input->old('app_seeds', env('APP_SEEDS'));
        $configsOverride = $this->Input->old('configs_override', env('CONFIGS_OVERRIDE'));
        $checked = function ($fieldname, $yes = 'checked', $no = '') use($migrations, $seeds, $configsOverride) {
            switch ($fieldname) {
                case 'migrations':
                    return $migrations === 'yes' ? $yes : $no;
                case 'seeds':
                    return $seeds === 'yes' ? $yes : $no;
                case 'configs_override':
                    return $configsOverride === 'yes' ? $yes : $no;
            }
            return $no;
        };
        return $this->View->make('devise::installer.application', compact('appName', 'migrations', 'seeds', 'configsOverride', 'checked'));
    }