Skip to content
Snippets Groups Projects
Unverified Commit 26189c6f authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3099295 by DukeandGrace, ravi.shankar, Chi, mradcliffe: Always return...

Issue #3099295 by DukeandGrace, ravi.shankar, Chi, mradcliffe: Always return exit code in Symfony console commands
parent a95e1114
No related branches found
No related tags found
6 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!1012Issue #3226887: Hreflang on non-canonical content pages,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10,!596Issue #3046532: deleting an entity reference field, used in a contextual view, makes the whole site unrecoverable,!496Issue #2463967: Use .user.ini file for PHP settings,!144Issue #2666286: Clean up menu_ui to conform to Drupal coding standards
......@@ -36,7 +36,7 @@ protected function execute(InputInterface $input, OutputInterface $output) {
$script = $input->getArgument('script');
if (!is_file($script)) {
$output->writeln('File must exist.');
return;
return 1;
}
$connection = $this->getDatabaseConnection($input);
......
......@@ -126,6 +126,9 @@ protected function isDrupalInstalled() {
*
* @throws \Exception
* Thrown when failing to create the $site_path directory or settings.php.
*
* @return int
* The command exit status.
*/
protected function install($class_loader, SymfonyStyle $io, $profile, $langcode, $site_path, $site_name) {
$password = Crypt::randomBytesBase64(12);
......@@ -211,6 +214,8 @@ protected function install($class_loader, SymfonyStyle $io, $profile, $langcode,
$progress_bar->finish();
$io->writeln('<info>Username:</info> admin');
$io->writeln("<info>Password:</info> $password");
return 0;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment