Files
emails/cli/common/Wrapper/Application.php
2023-06-12 21:14:07 -04:00

25 lines
669 B
PHP

<?php
namespace ProVM\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;
}
}