FIX: DEPRECATED
This commit is contained in:
@ -7,7 +7,7 @@ use Symfony\Component\Console;
|
|||||||
|
|
||||||
class Command extends Console\Command\Command
|
class Command extends Console\Command\Command
|
||||||
{
|
{
|
||||||
public function __construct(protected ClientInterface $client, protected LoggerInterface $logger, string $name = null)
|
public function __construct(protected ClientInterface $client, protected LoggerInterface $logger, ?string $name = null)
|
||||||
{
|
{
|
||||||
parent::__construct($name);
|
parent::__construct($name);
|
||||||
}
|
}
|
||||||
|
@ -10,8 +10,8 @@ use Incoviba\Common\Alias\Command;
|
|||||||
)]
|
)]
|
||||||
class Comunas extends Command
|
class Comunas extends Command
|
||||||
{
|
{
|
||||||
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output)
|
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int
|
||||||
{
|
{
|
||||||
$this->logger->debug("Running {$this->getName()}");
|
$this->logger->debug("Running {$this->getName()}");
|
||||||
$uri = '/api/direcciones/region/13/comunas';
|
$uri = '/api/direcciones/region/13/comunas';
|
||||||
$output->writeln("GET {$uri}");
|
$output->writeln("GET {$uri}");
|
||||||
|
@ -10,7 +10,7 @@ use Incoviba\Common\Alias\Command;
|
|||||||
)]
|
)]
|
||||||
class Update extends Command
|
class Update extends Command
|
||||||
{
|
{
|
||||||
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output)
|
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int
|
||||||
{
|
{
|
||||||
$this->logger->debug("Running {$this->getName()}");
|
$this->logger->debug("Running {$this->getName()}");
|
||||||
$uri = '/api/contabilidad/cartolas/update';
|
$uri = '/api/contabilidad/cartolas/update';
|
||||||
|
@ -12,7 +12,7 @@ use Incoviba\Common\Alias\Command;
|
|||||||
)]
|
)]
|
||||||
class Full extends Command
|
class Full extends Command
|
||||||
{
|
{
|
||||||
public function __construct(ClientInterface $client, LoggerInterface $logger, protected array $commandsList, string $name = null)
|
public function __construct(ClientInterface $client, LoggerInterface $logger, protected array $commandsList, ?string $name = null)
|
||||||
{
|
{
|
||||||
parent::__construct($client, $logger, $name);
|
parent::__construct($client, $logger, $name);
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,7 @@ use Incoviba\Common\Alias\Command;
|
|||||||
)]
|
)]
|
||||||
class IPC extends Command
|
class IPC extends Command
|
||||||
{
|
{
|
||||||
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output)
|
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int
|
||||||
{
|
{
|
||||||
$this->logger->debug("Running {$this->getName()}");
|
$this->logger->debug("Running {$this->getName()}");
|
||||||
$lastMonth = (new DateTimeImmutable())->sub(new DateInterval('P1M'));
|
$lastMonth = (new DateTimeImmutable())->sub(new DateInterval('P1M'));
|
||||||
|
@ -11,7 +11,7 @@ use Incoviba\Common\Alias\Command;
|
|||||||
)]
|
)]
|
||||||
class UF extends Command
|
class UF extends Command
|
||||||
{
|
{
|
||||||
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output)
|
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int
|
||||||
{
|
{
|
||||||
$this->logger->debug("Running {$this->getName()}");
|
$this->logger->debug("Running {$this->getName()}");
|
||||||
$now = new DateTimeImmutable();
|
$now = new DateTimeImmutable();
|
||||||
|
@ -11,7 +11,7 @@ use Incoviba\Common\Alias\Command;
|
|||||||
)]
|
)]
|
||||||
class Update extends Command
|
class Update extends Command
|
||||||
{
|
{
|
||||||
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output)
|
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int
|
||||||
{
|
{
|
||||||
$this->logger->debug("Running {$this->getName()}");
|
$this->logger->debug("Running {$this->getName()}");
|
||||||
$url = '/api/money/ufs';
|
$url = '/api/money/ufs';
|
||||||
|
@ -10,7 +10,7 @@ use Incoviba\Common\Alias\Command;
|
|||||||
)]
|
)]
|
||||||
class Activos extends Command
|
class Activos extends Command
|
||||||
{
|
{
|
||||||
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output)
|
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int
|
||||||
{
|
{
|
||||||
$this->logger->debug("Running {$this->getName()}");
|
$this->logger->debug("Running {$this->getName()}");
|
||||||
$uri = '/api/proyectos';
|
$uri = '/api/proyectos';
|
||||||
|
@ -10,7 +10,7 @@ use Incoviba\Common\Alias\Command;
|
|||||||
)]
|
)]
|
||||||
class Vigentes extends Command
|
class Vigentes extends Command
|
||||||
{
|
{
|
||||||
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output)
|
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int
|
||||||
{
|
{
|
||||||
$this->logger->debug("Running {$this->getName()}");
|
$this->logger->debug("Running {$this->getName()}");
|
||||||
$uri = '/api/ventas/cierres/vigentes';
|
$uri = '/api/ventas/cierres/vigentes';
|
||||||
|
@ -10,7 +10,7 @@ use Incoviba\Common\Alias\Command;
|
|||||||
)]
|
)]
|
||||||
class Hoy extends Command
|
class Hoy extends Command
|
||||||
{
|
{
|
||||||
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output)
|
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int
|
||||||
{
|
{
|
||||||
$this->logger->debug("Running {$this->getName()}");
|
$this->logger->debug("Running {$this->getName()}");
|
||||||
$uri = '/api/ventas/cuotas/hoy';
|
$uri = '/api/ventas/cuotas/hoy';
|
||||||
|
@ -10,7 +10,7 @@ use Incoviba\Common\Alias\Command;
|
|||||||
)]
|
)]
|
||||||
class Pendientes extends Command
|
class Pendientes extends Command
|
||||||
{
|
{
|
||||||
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output)
|
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int
|
||||||
{
|
{
|
||||||
$this->logger->debug("Running {$this->getName()}");
|
$this->logger->debug("Running {$this->getName()}");
|
||||||
$uri = '/api/ventas/cuotas/pendiente';
|
$uri = '/api/ventas/cuotas/pendiente';
|
||||||
|
@ -10,7 +10,7 @@ use Incoviba\Common\Alias\Command;
|
|||||||
)]
|
)]
|
||||||
class PorVencer extends Command
|
class PorVencer extends Command
|
||||||
{
|
{
|
||||||
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output)
|
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int
|
||||||
{
|
{
|
||||||
$this->logger->debug("Running {$this->getName()}");
|
$this->logger->debug("Running {$this->getName()}");
|
||||||
$uri = '/api/ventas/cuotas/vencer';
|
$uri = '/api/ventas/cuotas/vencer';
|
||||||
|
Reference in New Issue
Block a user