2022-11-25 20:52:46 -03:00
|
|
|
<?php
|
2023-06-09 00:54:34 -04:00
|
|
|
namespace ProVM\Wrapper;
|
2022-11-25 20:52:46 -03:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
2023-06-09 00:54:34 -04:00
|
|
|
}
|