DmitryDulepov\Realurl\Utility::getCache PHP Method

getCache() public method

Returns the cache to use.
public getCache ( ) : DmitryDulepov\Realurl\Cache\CacheInterface
return DmitryDulepov\Realurl\Cache\CacheInterface
    public function getCache()
    {
        $cache = CacheFactory::getCache();
        return $cache;
    }

Usage Example

 /**
  * Initializes the class.
  */
 public function __construct()
 {
     $this->databaseConnection = $GLOBALS['TYPO3_DB'];
     $this->tsfe = $GLOBALS['TSFE'];
     $this->configuration = ConfigurationReader::getInstance();
     $this->emptySegmentValue = $this->configuration->get('init/emptySegmentValue');
     $this->rootPageId = (int) $this->configuration->get('pagePath/rootpage_id');
     $this->utility = Utility::getInstance();
     $this->cache = $this->utility->getCache();
     $this->pageRepository = GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\Page\\PageRepository');
     $this->pageRepository->init(FALSE);
 }
All Usage Examples Of DmitryDulepov\Realurl\Utility::getCache