logger->debug("Running {$this->getName()}"); $now = new DateTimeImmutable('now', new DateTimeZone($_ENV['TZ'] ?? 'America/Santiago')); $uri = '/api/money/uf'; $data = [ 'fecha' => $now->format('Y-m-d') ]; $output->writeln("POST {$uri}"); $response = $this->client->post($uri, [ 'body' => http_build_query($data), 'headers' => ['Content-Type' => 'application/x-www-form-urlencoded'] ]); $output->writeln("Response Code: {$response->getStatusCode()}"); return Console\Command\Command::SUCCESS; } }