mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Rename variable in factory to
This commit is contained in:
parent
96701b8ea0
commit
489aca2fc9
6
cache/Cache.php
vendored
6
cache/Cache.php
vendored
@ -188,14 +188,14 @@ class SS_Cache {
|
||||
|
||||
require_once 'Zend/Cache.php';
|
||||
|
||||
$container = Zend_Cache::factory(
|
||||
$cache = Zend_Cache::factory(
|
||||
$frontend, $backend[0], $frontendOptions, $backend[1]
|
||||
);
|
||||
|
||||
if (isset($frontendOptions['disable-container']) && $frontendOptions['disable-container']) {
|
||||
return $container;
|
||||
return $cache;
|
||||
}
|
||||
|
||||
return Injector::inst()->createWithArgs('CacheProxy', [$container]);
|
||||
return Injector::inst()->createWithArgs('CacheProxy', [$cache]);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user