Bluz\Cache\Adapter\AbstractAdapter::__construct PHP Method

__construct() public method

Setup adapter settings
public __construct ( array $settings = [] )
$settings array setup adapter
    public function __construct($settings = [])
    {
        $this->settings = array_replace_recursive($this->settings, $settings);
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Check APC extension
  *
  * @param  array $settings
  * @throws ComponentException
  */
 public function __construct($settings = [])
 {
     if (!extension_loaded('apc')) {
         $msg = "APC extension not installed/enabled.\n                    Install and/or enable APC extension. See phpinfo() for more information";
         throw new ComponentException($msg);
     }
     parent::__construct($settings);
 }
All Usage Examples Of Bluz\Cache\Adapter\AbstractAdapter::__construct