Example #1
0
 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);
 }
Example #2
0
 public function __construct(Command $command)
 {
     $this->response = new JsonResponse();
     $command->setResponse($this->response);
 }