mirror of
https://github.com/php/php-src.git
synced 2024-11-24 02:15:04 +08:00
Rename storage* to container*.
This commit is contained in:
parent
8ff094046d
commit
5ac3adf9d2
@ -121,18 +121,18 @@ class Cache extends PEAR {
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string Name of storage container class
|
||||
* @param array Array with storage class dependend config options
|
||||
* @param string Name of container class
|
||||
* @param array Array with container class options
|
||||
*/
|
||||
function Cache($storage_driver, $storage_options = '')
|
||||
function Cache($container, $container_options = '')
|
||||
{
|
||||
$this->PEAR();
|
||||
$storage_driver = strtolower($storage_driver);
|
||||
$storage_class = 'Cache_Container_' . $storage_driver;
|
||||
$storage_classfile = 'Cache/Container/' . $storage_driver . '.php';
|
||||
$container = strtolower($container);
|
||||
$container_class = 'Cache_Container_' . $container;
|
||||
$container_classfile = 'Cache/Container/' . $container . '.php';
|
||||
|
||||
include_once $storage_classfile;
|
||||
$this->container = new $storage_class($storage_options);
|
||||
include_once $container_classfile;
|
||||
$this->container = new $container_class($container_options);
|
||||
}
|
||||
|
||||
//deconstructor
|
||||
|
Loading…
Reference in New Issue
Block a user