ignoreValidationErrors(); } /** * Sets the extbase command to be used for fetching the description etc. * * @param \TYPO3\CMS\Extbase\Mvc\Cli\Command $command */ public function setExtbaseCommand(\TYPO3\CMS\Extbase\Mvc\Cli\Command $command) { $this->command = $command; } /** * Sets the application instance for this command. * Also uses the setApplication call now, as $this->configure() is called * too early * * @param Application $application An Application instance */ public function setApplication(Application $application = null) { parent::setApplication($application); $description = $this->command->getDescription(); $description = str_replace(LF, ' ', $description); $this->setDescription($description); } /** * Executes the command to find any Extbase command * * @param InputInterface $input * @param OutputInterface $output */ protected function execute(InputInterface $input, OutputInterface $output) { // ugly hack because extbase only knows "help" (hardcoded, but already defined by symfony) // and "extbase:help:help" if ($_SERVER['argv'][1] === 'extbase:help') { $_SERVER['argv'][1] = 'extbase:help:help'; } $bootstrap = GeneralUtility::makeInstance(Bootstrap::class); $bootstrap->run('', []); } }