app/AppKernel.php
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
use AppBundle\Common\ExtensionManager;
use Codeages\Biz\Framework\Context\Biz;
use Codeages\Biz\Framework\Provider\DoctrineServiceProvider;
use Codeages\Biz\Framework\Provider\MonologServiceProvider;
use Codeages\PluginBundle\System\PluginableHttpKernelInterface;
use Codeages\PluginBundle\System\PluginConfigurationManager;
use Symfony\Component\Config\Loader\LoaderInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Kernel;
use Topxia\Service\Common\ServiceKernel;
class AppKernel extends Kernel implements PluginableHttpKernelInterface
{
protected $plugins = array();
/**
* @var Request
*/
protected $request;
protected $extensionManger;
private $isServiceKernelInit = false;
protected $pluginConfigurationManager;
public function __construct($environment, $debug)
{
parent::__construct($environment, $debug);
date_default_timezone_set('Asia/Shanghai');
$this->extensionManger = ExtensionManager::init($this);
$this->pluginConfigurationManager = new PluginConfigurationManager($this->getRootDir());
}
public function boot()
{
if (true === $this->booted) {
return;
}
if ($this->loadClassCache) {
$this->doLoadClassCache($this->loadClassCache[0], $this->loadClassCache[1]);
}
// init bundles
$this->initializeBundles();
// init container
$this->initializeContainer();
$this->initializeBiz($this->getContainer()->get('biz'));
$this->initializeServiceKernel();
foreach ($this->getBundles() as $bundle) {
$bundle->setContainer($this->container);
$bundle->boot();
}
$this->booted = true;
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。