getAutoPrefixManagers()->prepend(new AutoPrefixNamespaceManager('\\jrosset\\Tests\\Commands', 'test')); $this->getAutoDiscoverySpots()->prepend($spot); $this->addAutoDiscoveredCommands(); } public function run (InputInterface $input = null, OutputInterface $output = null): int { $logger = new Logger(__CLASS__); $logger->pushHandler(new StreamHandler(__DIR__ . '/run.log', Logger::DEBUG)); return parent::run($input, $output ?? new ConsoleOutputWithMonolog($logger)); } }