本文整理汇总了PHP中TYPO3\CMS\Core\Core\Bootstrap::baseSetup方法的典型用法代码示例。如果您正苦于以下问题:PHP Bootstrap::baseSetup方法的具体用法?PHP Bootstrap::baseSetup怎么用?PHP Bootstrap::baseSetup使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TYPO3\CMS\Core\Core\Bootstrap
的用法示例。
在下文中一共展示了Bootstrap::baseSetup方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: baseSetup
/**
* @param string $pathPart
* @return void
*/
public function baseSetup($pathPart = '')
{
// @deprecated in 6.2 will be removed in 7
if (is_callable(array(__CLASS__, 'initializeComposerClassLoader'))) {
$this->setEarlyInstance('Composer\\Autoload\\ClassLoader', self::initializeComposerClassLoader());
}
// @deprecated in 6.2 will be removed in 7
if (!class_exists('TYPO3\\Flow\\Package\\PackageManager')) {
$this->packageManagerInstanceName = 'TYPO3\\CMS\\Core\\Package\\PackageManager';
class_alias('TYPO3\\CMS\\Core\\Package\\PackageManager', 'TYPO3\\Flow\\Package\\PackageManager');
}
// @deprecated in 6.2 will be removed in 7
class_alias('TYPO3\\CMS\\Core\\Core\\Bootstrap', 'TYPO3\\Flow\\Core\\Bootstrap');
define('TYPO3_MODE', 'BE');
define('TYPO3_cliMode', TRUE);
$GLOBALS['MCONF']['name'] = '_CLI_lowlevel';
parent::baseSetup($pathPart);
// I want to see deprecation messages
// error_reporting(E_ALL & ~(E_STRICT | E_NOTICE));
// I would love to see deprecation messages, but unfortunately TYPO3 core itself triggers such messages :(
error_reporting(E_ALL & ~(E_STRICT | E_NOTICE | E_DEPRECATED));
}