/** * Register default command. * * @return Console Return this object to support chaining. * * @since 2.0 */ public function registerRootCommand() { if ($this->rootCommand) { return $this; } $this->rootCommand = new RootCommand(null, $this->io); $this->rootCommand->setApplication($this); $this->description ? $this->rootCommand->description($this->description) : null; $this->help ? $this->rootCommand->help($this->help) : null; return $this; }