Skip to content

Commit

Permalink
Make cache-warmup optional for initialize command
Browse files Browse the repository at this point in the history
  • Loading branch information
WilcoLouwerse committed Mar 29, 2024
1 parent 4f3918e commit 9a61df5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/src/Command/InitializationCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ protected function configure(): void
->addOption('skip-schema', 'sa', InputOption::VALUE_OPTIONAL, 'Don\'t update schema\'s during upgrade', false)
->addOption('skip-script', 'sp', InputOption::VALUE_OPTIONAL, 'Don\'t execute installation scripts during upgrade', false)
->addOption('unsafe', 'u', InputOption::VALUE_OPTIONAL, 'Delete data that is not present in the test data', false)
->addOption('cache-warmup', 'c', InputOption::VALUE_OPTIONAL, 'Include running a cache:warmup at the end', false)
// the short description shown while running "php bin/console list"
->setDescription('Facilitates the initialization of the gateway and checks configuration')

Expand All @@ -89,6 +90,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$config['skip-schema'] = $input->getOption('skip-schema');
$config['skip-script'] = $input->getOption('skip-script');
$config['unsafe'] = $input->getOption('unsafe');
$config['cache-warmup'] = $input->getOption('cache-warmup');

// Throw the event
$io->info('Throwing commongateway.pre.initialization event');
Expand Down

0 comments on commit 9a61df5

Please sign in to comment.