public function __construct(Command $command) { $this->command = $command; $definition = $command->definition(); $this->commandName = $definition->name; $this->commandVersion = $definition->version; $this->commandDescription = $definition->description; $this->optionsArray = $this->command->optionsArray(); $this->response = new Response(); $command->setResponse($this->response); }
public function __construct(Command $command) { $this->response = new JsonResponse(); $command->setResponse($this->response); }