Files
emails/cli/common/Wrapper/Application.php
2022-11-25 20:52:46 -03:00

25 lines
676 B
PHP

<?php
namespace ProVM\Common\Wrapper;
use Psr\Container\ContainerInterface;
use Symfony\Component\Console\Application as Base;
class Application extends Base
{
public function __construct(ContainerInterface $container, string $name = 'UNKNOWN', string $version = 'UNKNOWN')
{
$this->setContainer($container);
parent::__construct($name, $version);
}
protected ContainerInterface $container;
public function getContainer(): ContainerInterface
{
return $this->container;
}
public function setContainer(ContainerInterface $container): Application
{
$this->container = $container;
return $this;
}
}