public function __construct(array $config = null, $id = null) { if (!isset($config['cache'])) { $config['cache'] = 'default'; } $this->cache = \Cache\Cache::ins($config['cache']); parent::__construct($config, $id); }