1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php
- namespace Cube\Application\Resource;
- use Cube\Cache as CacheObject;
- class Cache extends AbstractResource
- {
-
- protected $_cache;
-
- public function init()
- {
- if (!($this->_cache instanceof CacheObject)) {
- if (!isset($this->_options['cache']['adapter'])) {
- $this->_options['cache']['adapter'] = '\\Cube\\Cache\\Adapter\\Files';
- }
- $this->_cache = CacheObject::getInstance($this->_options['cache']);
- }
- return $this->_cache;
- }
- }
|