setDescription('Cleanup Events'); $this->setHelp('Events are cleaned up'); } protected function execute(InputInterface $input, OutputInterface $output) { $this->cliOutput = $output; $this->cliInput = $input; Bootstrap::initializeBackendAuthentication(); $this->objectManager = GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager'); $this->destinationDataImportService = $this->objectManager->get('Wrm\\Events\\Service\\CleanupService'); return $this->cleanupService->doClean(); } }