@@ 31-33 (lines=3) @@ | ||
28 | return self::$cachedInstances[$fullKey]; |
|
29 | } |
|
30 | ||
31 | if ($strategy && !$options && isset(self::$cachedInstances[$key])) { |
|
32 | return self::$cachedInstances[$key]; |
|
33 | } |
|
34 | ||
35 | if (!$strategy && !$options && isset(self::$cachedInstances[$realm])) { |
|
36 | return self::$cachedInstances[$realm]; |
|
@@ 35-37 (lines=3) @@ | ||
32 | return self::$cachedInstances[$key]; |
|
33 | } |
|
34 | ||
35 | if (!$strategy && !$options && isset(self::$cachedInstances[$realm])) { |
|
36 | return self::$cachedInstances[$realm]; |
|
37 | } |
|
38 | ||
39 | // No instance available so far... Lets create one with default values |
|
40 | $strategy = $strategy ? $strategy : self::STRATEGY_REDIS; |