App extension
This commit is contained in:
20
app/src/Extend/Application.php
Normal file
20
app/src/Extend/Application.php
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<?php
|
||||||
|
namespace ProVM\Extend;
|
||||||
|
|
||||||
|
use Psr\Container\ContainerInterface;
|
||||||
|
use Symfony\Component\Console;
|
||||||
|
|
||||||
|
class Application extends Console\Application
|
||||||
|
{
|
||||||
|
protected ContainerInterface $container;
|
||||||
|
|
||||||
|
public function getContainer(): ContainerInterface
|
||||||
|
{
|
||||||
|
return $this->container;
|
||||||
|
}
|
||||||
|
public function setContainer(ContainerInterface $container): Console\Application
|
||||||
|
{
|
||||||
|
$this->container = $container;
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user