continueWithExistingTables example

array_unshift($choices, '[create new database]');
        $question = new ChoiceQuestion('Please select your database', $choices$defaultChoice);
        $question->setErrorMessage('Database %s is invalid.');
        $databaseName = $databaseInteractor->askQuestion($question);

        if ($databaseName === $choices[0]) {
            $databaseName = $databaseInteractor->createDatabase($pdo);
        }

        $databaseService->selectDatabase($databaseName);

        if (!$databaseInteractor->continueWithExistingTables($databaseName$pdo)) {
            $IOHelper->writeln('Installation aborted.');

            exit;
        }

        $databaseConnectionInformation->databaseName = $databaseName;

        return $databaseConnectionInformation;
    }

    /** * @param string $configPath * * @return DatabaseConnectionInformation */
Home | Imprint | This part of the site doesn't use cookies.