From f957d2977970ed5aafaa0e2962f788b5c6f7780f Mon Sep 17 00:00:00 2001 From: Aldarien Date: Wed, 29 Nov 2023 23:02:12 -0300 Subject: [PATCH] Full command --- CLI.Dockerfile | 4 +-- cli/resources/commands/base.php | 2 ++ cli/src/Command/Full.php | 32 ++++++++++++++++++++ cli/src/Command/Ventas/Cuotas/Pendientes.php | 2 +- 4 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 cli/resources/commands/base.php create mode 100644 cli/src/Command/Full.php diff --git a/CLI.Dockerfile b/CLI.Dockerfile index 0dc75d9..059a50f 100644 --- a/CLI.Dockerfile +++ b/CLI.Dockerfile @@ -1,10 +1,10 @@ -FROM php:8.1-fpm +FROM php:8.2-fpm ENV TZ "America/Santiago" RUN apt-get update && apt-get install -y --no-install-recommends cron && rm -r /var/lib/apt/lists/* -RUN pecl install xdebug-3.1.3 \ +RUN pecl install xdebug-3.2.2 \ && docker-php-ext-enable xdebug COPY ./php-errors.ini /usr/local/etc/php/conf.d/docker-php-errors.ini diff --git a/cli/resources/commands/base.php b/cli/resources/commands/base.php new file mode 100644 index 0000000..3150c18 --- /dev/null +++ b/cli/resources/commands/base.php @@ -0,0 +1,2 @@ +add($app->getContainer()->get(Incoviba\Command\Full::class)); diff --git a/cli/src/Command/Full.php b/cli/src/Command/Full.php new file mode 100644 index 0000000..5c7d9d0 --- /dev/null +++ b/cli/src/Command/Full.php @@ -0,0 +1,32 @@ + $command + ]); + $this->getApplication()->doRun($cmd, $output); + } + return Command::SUCCESS; + } +} diff --git a/cli/src/Command/Ventas/Cuotas/Pendientes.php b/cli/src/Command/Ventas/Cuotas/Pendientes.php index 05f1d0f..576475e 100644 --- a/cli/src/Command/Ventas/Cuotas/Pendientes.php +++ b/cli/src/Command/Ventas/Cuotas/Pendientes.php @@ -12,7 +12,7 @@ class Pendientes extends Command public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output) { $this->logger->debug("Running {$this->getName()}"); - $uri = '/api/ventas/cuotas/pendientes'; + $uri = '/api/ventas/cuotas/pendiente'; $output->writeln("GET {$uri}"); $response = $this->client->get($uri); $output->writeln("Response Code: {$response->getStatusCode()}");