storageStatistics = $storageStatistics; } #[\Override] public function configure(): void { parent::configure(); $this->setName('serverinfo:update-storage-statistics') ->setDescription('Triggers an update of the counts related to storages used in serverinfo'); } public function execute(InputInterface $input, OutputInterface $output): int { if ($output->isVeryVerbose()) { $this->writeMixedInOutputFormat($input, $output, 'Updating database counts. This might take a while.'); } $this->storageStatistics->updateStorageCounts(); if ($output->isVerbose()) { $this->writeArrayInOutputFormat($input, $output, $this->storageStatistics->getStorageStatistics()); } return 0; } }