/** * Instantiate the controller. * * @param Command $command The command object. */ public function __construct(Command $command) { // Setup dependencies. $this->app = $command->getApplication() ?: $this->loadApplication(); $this->input = $command->getInput() ?: $this->loadInput(); $this->command = $command; }