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

askDatabaseName() private method

private askDatabaseName ( 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 askDatabaseName(InputInterface $input, IoService $ioService, $suggestion)
    {
        $databaseName = $input->getOption('db-name');
        if (!$databaseName) {
            $databaseName = $ioService->ask("Please provide the database name you want to use [{$suggestion}]: ");
            $input->setOption('db-name', trim($databaseName) ? $databaseName : $suggestion);
        }
    }