Files
oficial/cli/common/Alias/Application.php
aldarien 307f2ac7d7 feature/cierres (#25)
Varios cambios

Co-authored-by: Juan Pablo Vial <jpvialb@incoviba.cl>
Reviewed-on: #25
2025-07-22 13:18:00 +00:00

24 lines
660 B
PHP

<?php
namespace Incoviba\Common\Alias;
use Incoviba\Common\Implement\Message;
use Psr\Container\ContainerInterface;
use Symfony\Component\Console;
use Incoviba\Common\Concept;
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');
}
parent::__construct($name, $version);
}
public function getContainer(): ContainerInterface
{
return $this->container;
}
}