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); }
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); }