2023-11-25 00:56:18 -03:00
|
|
|
<?php
|
|
|
|
namespace Incoviba\Common\Alias;
|
|
|
|
|
2024-07-26 23:15:48 -04:00
|
|
|
use Incoviba\Common\Implement\Message;
|
2023-11-25 00:56:18 -03:00
|
|
|
use Psr\Container\ContainerInterface;
|
2024-07-26 23:15:48 -04:00
|
|
|
use Symfony\Component\Console;
|
|
|
|
use Incoviba\Common\Concept;
|
2023-11-25 00:56:18 -03:00
|
|
|
|
2024-07-26 23:15:48 -04:00
|
|
|
class Application extends Console\Application
|
2023-11-25 00:56:18 -03:00
|
|
|
{
|
|
|
|
public function __construct(protected ContainerInterface $container, string $name = 'UNKNOWN', string $version = 'UNKNOWN')
|
|
|
|
{
|
|
|
|
if ($this->container->has('APP_NAME')) {
|
|
|
|
$name = $this->container->get('APP_NAME');
|
|
|
|
}
|
|
|
|
parent::__construct($name, $version);
|
|
|
|
}
|
|
|
|
public function getContainer(): ContainerInterface
|
|
|
|
{
|
|
|
|
return $this->container;
|
|
|
|
}
|
|
|
|
}
|