本文整理匯總了PHP中Configuration::configuration方法的典型用法代碼示例。如果您正苦於以下問題:PHP Configuration::configuration方法的具體用法?PHP Configuration::configuration怎麽用?PHP Configuration::configuration使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Configuration
的用法示例。
在下文中一共展示了Configuration::configuration方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: testConfigurationInstance
function testConfigurationInstance()
{
$config = Configuration::configuration();
$this->assertTrue($config != null);
$c2 = Configuration::configuration();
$this->assertTrue($config == $c2);
}
示例2: configuration
public static function configuration()
{
if (self::$configuration == null) {
self::$configuration = new Configuration();
}
return self::$configuration;
}
示例3: getInstance
public static function getInstance()
{
if (is_null(Configuration::$configuration)) {
Configuration::$configuration = new Configuration();
}
return Configuration::$configuration;
}
示例4: getConfiguration
function getConfiguration()
{
$config = Configuration::configuration();
$config->setConfDb(array('host' => 'localhost', 'user' => 'willian', 'pass' => 'rancharia', 'dbname' => 'trazai_tests'));
return $config;
}
示例5: run
public function run()
{
$connection = Configuration::configuration()->getConnection();
return $connection->run($this);
}