public function __construct($driver = '', array $config = []) { $config['path'] = 'your/custom/path/where/files/will/be/written'; $driver = 'files'; parent::__construct($driver, $config); /** * That's all !! Your cache class is ready to use */ }
/** * @param string $driver * @param array $config */ public function __construct($driver = 'auto', array $config = []) { $this->instance = parent::__construct($driver, self::getOptions()); }