/** * Get cache object */ public static function getCache() { if (!self::$container['cache']) { $config = self::getConfig()->get('cache.default'); self::$container['cache'] = Cache::getInstance($config); } return self::$container['cache']; }