本文整理匯總了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));
}