本文整理汇总了PHP中Symphony::initialiseExtensionManager方法的典型用法代码示例。如果您正苦于以下问题:PHP Symphony::initialiseExtensionManager方法的具体用法?PHP Symphony::initialiseExtensionManager怎么用?PHP Symphony::initialiseExtensionManager使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Symphony
的用法示例。
在下文中一共展示了Symphony::initialiseExtensionManager方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: preg_match
$bInsideInstaller = (bool) preg_match('%(/|\\\\)install(/|\\\\)index.php$%', $_SERVER['SCRIPT_FILENAME']);
if (!$bInsideInstaller && Symphony::isInstallerAvailable()) {
header(sprintf('Location: %s/install/', URL));
exit;
} else {
if (!$bInsideInstaller) {
die('<h2>Error</h2><p>Could not locate Symphony configuration file. Please check <code>manifest/config.php</code> exists.</p>');
}
}
} else {
// Load configuration file:
include CONFIG;
Symphony::initialiseConfiguration($settings);
Symphony::initialiseErrorHandler();
Symphony::initialiseDatabase();
Symphony::initialiseExtensionManager();
// Handle custom admin paths, #702
$adminPath = Symphony::Configuration()->get('admin-path', 'symphony');
$adminPath = is_null($adminPath) ? 'symphony' : $adminPath;
if (isset($_GET['symphony-page']) && strpos($_GET['symphony-page'], $adminPath, 0) === 0) {
$_GET['symphony-page'] = preg_replace('%^' . preg_quote($adminPath) . '\\/%', '', $_GET['symphony-page'], 1);
if ($_GET['symphony-page'] == '') {
unset($_GET['symphony-page']);
}
$_GET['mode'] = $_REQUEST['mode'] = 'administration';
}
/**
* Returns the URL + /symphony. This should be used whenever the a developer
* wants to link to the Symphony root
* @since Symphony 2.2
* @var string