src/Topxia/Service/Common/ServiceKernel.php
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
namespace Topxia\Service\Common;
use Biz\User\CurrentUser;
use Codeages\Biz\Framework\Context\Biz;
use Codeages\Biz\Framework\Dao\Connection;
use Symfony\Component\EventDispatcher\EventDispatcher;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
class ServiceKernel
{
private static $_instance;
private static $_dispatcher;
protected $_moduleDirectories = array();
protected $_moduleConfig = array();
protected $environment;
protected $debug;
protected $booted;
protected $translator;
protected $translatorEnabled;
protected $pluginKernel;
protected $parameterBag;
protected $currentUser;
protected $pool = array();
protected $connection;
protected $classMaps = array();
/**
* @var Biz
*/
protected $biz = null;
public function getRedis($group = 'default')
{
$biz = $this->getBiz();
if (empty($biz['redis'])) {
return false;
}
return $biz['redis'];
}
public static function create($environment, $debug)
{
if (self::$_instance) {
return self::$_instance;
}
$instance = new self();
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。