/** * * @param Oops_Config $config */ public function __construct($config = null) { if (!$config instanceof Oops_Config) { $config = new Oops_Cache_Defconf(); } $this->_config = $config; $this->_driver = Oops_Cache_Factory::getDriver($config->driver); }
public function __construct($config) { $this->_driver = Oops_Cache_Factory::getDriver($config); }