setName('bot:list'); $command->setExecuteCallback( function (InputInterface $input, OutputInterface $output) { $output->writeLn( $this->getCommands() ); return Command::SUCCESS; } ); $command2 = new Command; $command2->setName('bot:reload'); $command2->setExecuteCallback( function (InputInterface $input, OutputInterface $output) { $output->writeLn( 'Config reloaded' ); return Command::SUCCESS; } ); return [$command, $command2]; } protected function getCommands() { return implode(', ', array_keys(parse_ini_file(__DIR__ . '/../../Blatech.ini', true))); } }