IPC acumulado desde cli
This commit is contained in:
@ -15,10 +15,11 @@ class IPC extends Command
|
||||
{
|
||||
$this->logger->debug("Running {$this->getName()}");
|
||||
$lastMonth = (new DateTimeImmutable())->sub(new DateInterval('P1M'));
|
||||
$uri = '/api/money';
|
||||
$endLastYear = (new DateTimeImmutable())->sub(new DateInterval('P1Y'));
|
||||
$uri = '/api/money/ipc';
|
||||
$data = [
|
||||
'provider' => 'ipc',
|
||||
'fecha' => $lastMonth->format('Y-m-1')
|
||||
'start' => $endLastYear->format('Y-12-1'),
|
||||
'end' => $lastMonth->format('Y-m-1')
|
||||
];
|
||||
$output->writeln("POST {$uri}");
|
||||
$response = $this->client->post($uri, [
|
||||
|
Reference in New Issue
Block a user