This commit is contained in:
2025-09-13 01:22:15 +08:00
parent 155e05fd6d
commit 1a4b8551a0
674 changed files with 146276 additions and 0 deletions

View File

@ -0,0 +1,32 @@
<?php
/**
*
* @authorllbjj
* @DateTime2022/5/9 14:31
* @Description
*
*/
namespace Application\Command;
use Interop\Container\Containerinterface;
use Application\Common\Container;
use Application\Service\Extension\Laminas;
class BasicCommand extends \Symfony\Component\Console\Command\Command
{
protected $container;
public function __construct(Containerinterface $container)
{
parent::__construct(null);
$this->container = $container;
if(empty(Laminas::$serviceManager)) {
Laminas::initialize($this->container->get('Application'));
}
date_default_timezone_set('Asia/Chongqing');
}
public function LocalService(){
return new Container($this->container);
}
}