Skip to content
Snippets Groups Projects
Unverified Commit 8961c8b0 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

(cherry picked from commit 26189c6f)
parent b94405a8
Branches 4.7.x-2.x
No related tags found
9 merge requests!1445Issue #2920039: Views' User Name exposed group filter validation,!1298Issue #3240993: Let layout builder render inline block translations,!774Issue #3174569: Example node template file name is incorrect,!497Issue #2463967: Use .user.ini file for PHP settings,!433Resolve #3163663 "Too many open files",!233Resolve #2693787 "Taxonomy term name",!133Resolve #2666286 "Clean up menuui",!112Resolve #3187004 "Drupaldatetime serialization issue",!53Resolve #3181870: Correct typo "the the" in "core/classList" deprecation message.
...@@ -36,7 +36,7 @@ protected function execute(InputInterface $input, OutputInterface $output) { ...@@ -36,7 +36,7 @@ protected function execute(InputInterface $input, OutputInterface $output) {
$script = $input->getArgument('script'); $script = $input->getArgument('script');
if (!is_file($script)) { if (!is_file($script)) {
$output->writeln('File must exist.'); $output->writeln('File must exist.');
return; return 1;
} }
$connection = $this->getDatabaseConnection($input); $connection = $this->getDatabaseConnection($input);
......
...@@ -126,6 +126,9 @@ protected function isDrupalInstalled() { ...@@ -126,6 +126,9 @@ protected function isDrupalInstalled() {
* *
* @throws \Exception * @throws \Exception
* Thrown when failing to create the $site_path directory or settings.php. * 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) { protected function install($class_loader, SymfonyStyle $io, $profile, $langcode, $site_path, $site_name) {
$password = Crypt::randomBytesBase64(12); $password = Crypt::randomBytesBase64(12);
...@@ -211,6 +214,8 @@ protected function install($class_loader, SymfonyStyle $io, $profile, $langcode, ...@@ -211,6 +214,8 @@ protected function install($class_loader, SymfonyStyle $io, $profile, $langcode,
$progress_bar->finish(); $progress_bar->finish();
$io->writeln('<info>Username:</info> admin'); $io->writeln('<info>Username:</info> admin');
$io->writeln("<info>Password:</info> $password"); $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