Shopware\Install\Command\ShopwareInstallReleaseCommand::askBasePath PHP Method

askBasePath() private method

private askBasePath ( Symfony\Component\Console\Input\InputInterface $input, ShopwareCli\Services\IoService $ioService, string $suggestion )
$input Symfony\Component\Console\Input\InputInterface
$ioService ShopwareCli\Services\IoService
$suggestion string
    private function askBasePath(InputInterface $input, IoService $ioService, $suggestion)
    {
        $basePath = $input->getOption('shop-path');
        if (!$basePath) {
            $suggestion = '/' . ltrim($suggestion, '/');
            $basePath = $ioService->ask("Please provide the shop base path you want to use [{$suggestion}]: ");
            $input->setOption('shop-path', trim($basePath) ? $basePath : $suggestion);
        }
    }