develop (#45)
Co-authored-by: Juan Pablo Vial <jpvialb@incoviba.cl> Reviewed-on: #45
This commit is contained in:
@ -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');
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user