service = $service; $this->logger = $logger; $this->setInterval(24 * 60 * 60); /** * @todo remove check with 24+ */ if (method_exists($this, 'setTimeSensitivity')) { $this->setTimeSensitivity(self::TIME_INSENSITIVE); } } #[\Override] protected function run($argument): void { $outdated = $this->service->deleteOutdated(); $this->logger->info('Found and deleted ' . $outdated . ' outdated booking confirmations.'); } }