application = new Application(); $this->application->setName("daenerys 🐲 "); $this->application->setVersion("0.0.1 (lotgd/core version " . \LotGD\Core\Game::getVersion() . ")"); } /** * Add supported commands, including those configured from lotgd.yml files. */ protected function addCommands() { $this->application->add(new ModuleValidateCommand($this->game)); $this->application->add(new ModuleRegisterCommand($this->game)); $this->application->add(new DatabaseInitCommand($this->game)); $this->application->add(new DatabaseSchemaUpdateCommand($this->game)); $this->application->add(new ConsoleCommand($this->game)); // Add additional ones $this->bootstrap->addDaenerysCommands($this->application); } /** * Run the danerys tool. */ public function run() { // Bootstrap application $this->bootstrap = new Bootstrap(); $this->game = $this->bootstrap->getGame(getcwd()); // Add commands $this->addCommands(); // Run $this->application->run(); } }