src/AppBundle/Common/ExtensionManager.php
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
namespace AppBundle\Common;
use Symfony\Component\Yaml\Yaml;
use Symfony\Component\Finder\Finder;
use Topxia\Service\Common\ServiceKernel;
/**
* Class ExtensionManager.
*
* @deprecated since version 7.0 to be removed in 8.0, use codeages_plugin.dict_twig_extension twig extension
*/
class ExtensionManager
{
protected $kernel;
protected $bundles;
protected $booted;
protected $statusTemplates;
protected $dataDict;
protected $dataTagClassmap;
protected $dataTags;
private static $_instance;
private function __construct($kernel)
{
$this->kernel = $kernel;
$this->bundles = array(
'DataTag' => array(),
'StatusTemplate' => array(),
'DataDict' => array(),
'NotificationTemplate' => array(),
);
$this->booted = false;
$this->statusTemplates = array();
$this->dataDict = array();
$this->dataTagClassmap = array();
$this->dataTags = array();
$this->notificationTemplates = array();
}
public static function init($kernel)
{
if (self::$_instance) {
return self::$_instance;
}
self::$_instance = new self($kernel);
return self::$_instance;
}
public static function instance()
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。