/** * We will run Cygnite Console Application. */ public function run() { $console = new ConsoleApplication(new Application(), $this->version); /* | We will also register Application Console commands | User can register multiple commands apart from core | commands and run on the fly */ $console->setCommand($this->commands)->registerCommands()->run(); }
/** * We will run Cygnite Console Application */ public function run() { $app = CygniteApplication::instance(); $console = new ConsoleApplication($app, $this->version); /* | We will also register Application Console commands | User can register multiple commands apart from core | commands and run on the fly */ $appConsoleBootStrap = $app->make('\\Apps\\Console\\BootStrapConsoleApplication'); $appConsoleCommands = $appConsoleBootStrap->register(); $console->setCommand($appConsoleCommands)->registerCommands()->run(); }