Add body to Enqueue command
This commit is contained in:
@ -19,6 +19,7 @@ class Enqueue extends Command
|
|||||||
$body = ['venta_ids' => explode('|', $input->getArgument('venta_ids'))];
|
$body = ['venta_ids' => explode('|', $input->getArgument('venta_ids'))];
|
||||||
$response = $this->client->post($uri, ['json' => $body]);
|
$response = $this->client->post($uri, ['json' => $body]);
|
||||||
$output->writeln("Response Code: {$response->getStatusCode()}");
|
$output->writeln("Response Code: {$response->getStatusCode()}");
|
||||||
|
$output->writeln($response->getBody()->getContents());
|
||||||
return Console\Command\Command::SUCCESS;
|
return Console\Command\Command::SUCCESS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user