cleanupService = $cleanupService; $this->logger = $logger; } /** * @return void */ protected function configure() { $this->setName('mail:clean-up'); $this->setDescription('clean up all orphaned data'); } protected function execute(InputInterface $input, OutputInterface $output): int { $logger = new ConsoleLoggerDecorator($this->logger, $output); $this->cleanupService->cleanUp($logger); return 0; } }