vendor/codeages/plugin-bundle/System/PluginConfigurationManager.php
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
namespace Codeages\PluginBundle\System;
class PluginConfigurationManager
{
protected $filepath;
protected $config;
protected $rootDir;
public function __construct($rootDir)
{
$this->rootDir = rtrim($rootDir, "\/");
$this->filepath = $this->rootDir.'/config/plugin.php';
if (!file_exists($this->filepath)) {
$this->config = array();
} else {
$this->config = require $this->filepath;
}
}
public function getActiveThemeName()
{
return empty($this->config['active_theme_name']) ? null : $this->config['active_theme_name'];
}
public function getActiveThemeDirectory()
{
$name = $this->getActiveThemeName();
if (empty($name)) {
return null;
}
return sprintf('%s/web/themes/%s', dirname($this->rootDir), $name);
}
public function setActiveThemeName($name)
{
$this->config['active_theme_name'] = $name;
return $this;
}
public function getInstalledPlugins()
{
return empty($this->config['installed_plugins']) ? array() : $this->config['installed_plugins'];
}
public function setInstalledPlugins($plugins)
{
$this->config['installed_plugins'] = $plugins;
return $this;
}
public function getInstalledPluginBundles()
{
$bundlues = array();
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。