update
This commit is contained in:
26
module/Application/src/Service/BaseService.php
Normal file
26
module/Application/src/Service/BaseService.php
Normal file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* @author:llbjj
|
||||
* @DateTime:2022/5/7 21:19
|
||||
* @Description:
|
||||
*
|
||||
*/
|
||||
|
||||
namespace Application\Service;
|
||||
|
||||
use Application\Common\Container;
|
||||
use Interop\Container\ContainerInterface;
|
||||
|
||||
class BaseService
|
||||
{
|
||||
protected $container;
|
||||
public function __construct(ContainerInterface $container)
|
||||
{
|
||||
$this->container = $container;
|
||||
}
|
||||
|
||||
public function LocalService(){
|
||||
return new Container($this->container);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user