Co-authored-by: Juan Pablo Vial <jpvialb@incoviba.cl>
Reviewed-on: #45
This commit is contained in:
2025-10-04 11:40:52 -03:00
parent 6ddc48ec60
commit 742de657c5
815 changed files with 62089 additions and 3287 deletions

View File

@ -1,13 +1,16 @@
<?php
namespace Incoviba\Common\Alias;
use Incoviba\Common\Implement\Message;
use Psr\Container\ContainerInterface;
use Symfony\Component\Console\Application as Base;
use Symfony\Component\Console;
use Incoviba\Common\Concept;
class Application extends Base
class Application extends Console\Application
{
public function __construct(protected ContainerInterface $container, string $name = 'UNKNOWN', string $version = 'UNKNOWN')
{
$name = 'incoviba_cli';
if ($this->container->has('APP_NAME')) {
$name = $this->container->get('APP_NAME');
}

View File

@ -7,7 +7,7 @@ use Symfony\Component\Console;
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);
}