From 9a61df57c4c93ef8f2d18136d8dc7250d378d729 Mon Sep 17 00:00:00 2001 From: Wilco Louwerse Date: Fri, 29 Mar 2024 10:02:21 +0100 Subject: [PATCH] Make cache-warmup optional for initialize command --- api/src/Command/InitializationCommand.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/src/Command/InitializationCommand.php b/api/src/Command/InitializationCommand.php index 71707915a..494875d82 100644 --- a/api/src/Command/InitializationCommand.php +++ b/api/src/Command/InitializationCommand.php @@ -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') @@ -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');