本文整理汇总了PHP中thebuggenie\core\framework\Context::initialize方法的典型用法代码示例。如果您正苦于以下问题:PHP Context::initialize方法的具体用法?PHP Context::initialize怎么用?PHP Context::initialize使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类thebuggenie\core\framework\Context
的用法示例。
在下文中一共展示了Context::initialize方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: die
<?php
// This code requires PHP 5.3 or newer, so if we don't have it - don't continue
if (PHP_VERSION_ID < 50300) {
die('This software requires PHP 5.3.0 or newer, but you have an older version. Please upgrade.');
}
gc_enable();
date_default_timezone_set('UTC');
if (!defined('THEBUGGENIE_PATH')) {
die('You must define the THEBUGGENIE_PATH constant so we can find the files we need');
}
defined('DS') || define('DS', DIRECTORY_SEPARATOR);
defined('THEBUGGENIE_VENDOR_PATH') || define('THEBUGGENIE_VENDOR_PATH', THEBUGGENIE_PATH . 'vendor' . DS);
if (!file_exists(THEBUGGENIE_VENDOR_PATH . 'autoload.php')) {
include THEBUGGENIE_CORE_PATH . 'templates' . DS . 'composer.error.php';
die;
}
require THEBUGGENIE_VENDOR_PATH . 'autoload.php';
defined('THEBUGGENIE_CACHE_PATH') || define('THEBUGGENIE_CACHE_PATH', THEBUGGENIE_PATH . 'cache' . DS);
defined('THEBUGGENIE_CONFIGURATION_PATH') || define('THEBUGGENIE_CONFIGURATION_PATH', THEBUGGENIE_CORE_PATH . 'config' . DS);
defined('THEBUGGENIE_INTERNAL_MODULES_PATH') || define('THEBUGGENIE_INTERNAL_MODULES_PATH', THEBUGGENIE_CORE_PATH . 'modules' . DS);
defined('THEBUGGENIE_MODULES_PATH') || define('THEBUGGENIE_MODULES_PATH', THEBUGGENIE_PATH . 'modules' . DS);
\thebuggenie\core\framework\Context::initialize();