예제 #1
0
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $group = $input->getArgument('group');
     $this->usecase->setIdentifiers(['id' => $group]);
     $response = $this->usecase->interact();
     // Format the response and output
     $this->handleResponse($response, $output);
 }
예제 #2
0
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $group = $input->getArgument('group');
     $key = $input->getOption('key');
     $value = $input->getArgument('value');
     if ($key) {
         $value = [$key => $value];
     } else {
         $value = json_decode($value, true);
     }
     $this->usecase->setIdentifiers(['id' => $group])->setPayload($value);
     $response = $this->usecase->interact();
     // Format the response and output
     $this->handleResponse($response, $output);
 }