Shopware\Install\Command\ShopwareInstallReleaseCommand::askInstallationDirectory PHP Метод

askInstallationDirectory() приватный Метод

private askInstallationDirectory ( Symfony\Component\Console\Input\InputInterface $input, ShopwareCli\Services\IoService $ioService, string $suggestion ) : string
$input Symfony\Component\Console\Input\InputInterface
$ioService ShopwareCli\Services\IoService
$suggestion string
Результат string
    private function askInstallationDirectory(InputInterface $input, IoService $ioService, $suggestion)
    {
        $installDir = $input->getOption('install-dir');
        if (!$installDir) {
            $installDir = $ioService->askAndValidate("Please provide the install directory [{$suggestion}]: ", array($this, 'validateInstallDir'));
            $input->setOption('install-dir', trim($installDir) ? $installDir : $suggestion);
            return $installDir;
        }
        return $installDir;
    }