本文整理汇总了PHP中Flux::appConfig方法的典型用法代码示例。如果您正苦于以下问题:PHP Flux::appConfig方法的具体用法?PHP Flux::appConfig怎么用?PHP Flux::appConfig使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Flux
的用法示例。
在下文中一共展示了Flux::appConfig方法的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();
}