Skip to content

Commit

Permalink
(REF) Demonstrate $bootOptions['auto'] more clearly
Browse files Browse the repository at this point in the history
  • Loading branch information
totten committed Sep 24, 2024
1 parent 58aae7f commit 0dfb8e3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/src/Command/BaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class BaseCommand extends Command {

public function getBootOptions(): array {
return [
'auto' => TRUE,
'default' => 'full|cms-full',
'allow' => ['full|cms-full', 'full', 'cms-full', 'settings', 'classloader', 'cms-only', 'none'],
];
Expand Down
2 changes: 1 addition & 1 deletion src/Command/ScriptCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ protected function configure() {
}

public function getBootOptions(): array {
return parent::getBootOptions() + ['auto' => FALSE];
return ['auto' => FALSE] + parent::getBootOptions();
}

protected function execute(InputInterface $input, OutputInterface $output): int {
Expand Down
2 changes: 1 addition & 1 deletion src/Command/UpgradeGetCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ protected function configure() {
}

public function getBootOptions(): array {
return parent::getBootOptions() + ['auto' => FALSE];
return ['auto' => FALSE] + parent::getBootOptions();
}

protected function execute(InputInterface $input, OutputInterface $output): int {
Expand Down

0 comments on commit 0dfb8e3

Please sign in to comment.