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

askDatabasePassword() private method

private askDatabasePassword ( Symfony\Component\Console\Input\InputInterface $input, ShopwareCli\Services\IoService $ioService )
$input Symfony\Component\Console\Input\InputInterface
$ioService ShopwareCli\Services\IoService
    private function askDatabasePassword(InputInterface $input, IoService $ioService)
    {
        $databasePassword = $input->getOption('db-password');
        if (!$databasePassword) {
            $databasePassword = $ioService->ask("Please provide the database password: ");
            $input->setOption('db-password', trim($databasePassword));
        }
    }