@@ 47-49 (lines=3) @@ | ||
44 | return self::$cachedInstances[$fullKey]; |
|
45 | } |
|
46 | ||
47 | if ($strategy && !$options && isset(self::$cachedInstances[$key])) { |
|
48 | return self::$cachedInstances[$key]; |
|
49 | } |
|
50 | ||
51 | if (!$strategy && !$options && isset(self::$cachedInstances[$realm])) { |
|
52 | return self::$cachedInstances[$realm]; |
|
@@ 51-53 (lines=3) @@ | ||
48 | return self::$cachedInstances[$key]; |
|
49 | } |
|
50 | ||
51 | if (!$strategy && !$options && isset(self::$cachedInstances[$realm])) { |
|
52 | return self::$cachedInstances[$realm]; |
|
53 | } |
|
54 | ||
55 | // No instance available so far... Lets create one with default values |
|
56 | $strategy = $strategy ? $strategy : self::STRATEGY_REDIS; |