Commit with composer.json

This commit is contained in:
2014-05-27 17:56:46 +04:00
parent c62620593f
commit aec1a60985
20 changed files with 70 additions and 46 deletions

View File

@ -30,10 +30,10 @@ class RedisManager
{
if (!isset(self::$connections[$name])) {
if (!$config) {
if (!is_object(Config::get('Redis'))) {
if (!is_object(\Majestic\Config::get('Redis'))) {
throw new GeneralException('Redis config no existence');
}
$config = Config::get('Redis')->$name;
$config = \Majestic\Config::get('Redis')->$name;
}
if (!is_array($config)) {