本文整理匯總了PHP中Flux::serversConfig方法的典型用法代碼示例。如果您正苦於以下問題:PHP Flux::serversConfig方法的具體用法?PHP Flux::serversConfig怎麽用?PHP Flux::serversConfig使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Flux
的用法示例。
在下文中一共展示了Flux::serversConfig方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: initialize
/**
* Initialize Flux application. This will handle configuration parsing and
* instanciating of objects crucial to the control panel.
*
* @param array $options Options to pass to initializer.
* @throws Flux_Error Raised when missing required options.
* @access public
*/
public static function initialize($options = array())
{
//$required = array('appConfigFile', 'serversConfigFile', 'messagesConfigFile');
$required = array('appConfigFile', 'serversConfigFile');
foreach ($required as $option) {
if (!array_key_exists($option, $options)) {
self::raise("Missing required option `{$option}' in Flux::initialize()");
}
}
// Parse application and server configuration files, this will also
// handle configuration file normalization. See the source for the
// below methods for more details on what's being done.
self::$appConfig = self::parseAppConfigFile($options['appConfigFile']);
self::$serversConfig = self::parseServersConfigFile($options['serversConfigFile']);
//self::$messagesConfig = self::parseMessagesConfigFile($options['messagesConfigFile']); // Deprecated.
// Using newer language system.
self::$messagesConfig = self::parseLanguageConfigFile();
// Initialize server objects.
self::initializeServerObjects();
// Initialize add-ons.
self::initializeAddons();
}