25 lines
669 B
PHP
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;
|
|
}
|
|
}
|