App extension

This commit is contained in:
Juan Pablo Vial
2024-12-21 19:00:15 -03:00
parent 03f91bd721
commit 0fddc3a310

View 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;
}
}