[TASK] Migrate to static::class (require PHP 5.5 now)
authorTim Lochmüller <tim@fruit-lab.de>
Tue, 29 Dec 2015 09:37:22 +0000 (10:37 +0100)
committerTim Lochmüller <tim@fruit-lab.de>
Tue, 29 Dec 2015 09:37:22 +0000 (10:37 +0100)
Change-Id: I3254978497409abcb4ac83c8f9ca2169ab0da98f

Classes/Hook/LogoffFrontendUser.php
Classes/StaticFileCache.php
Classes/Utility/CacheUtility.php

index 5b637c8..576d838 100644 (file)
@@ -8,7 +8,6 @@ namespace SFC\NcStaticfilecache\Hook;
 
 use SFC\NcStaticfilecache\Utility\CookieUtility;
 use TYPO3\CMS\Core\Authentication\AbstractUserAuthentication;
-use TYPO3\CMS\Extbase\Utility\DebuggerUtility;
 
 /**
  * LogoffFrontendUser
index 4739900..584a4cd 100644 (file)
@@ -12,7 +12,6 @@ use SFC\NcStaticfilecache\Cache\UriFrontend;
 use SFC\NcStaticfilecache\Utility\CacheUtility;
 use TYPO3\CMS\Core\SingletonInterface;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
-use TYPO3\CMS\Core\Utility\MathUtility;
 use TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder;
 use TYPO3\CMS\Extbase\Object\ObjectManager;
 use TYPO3\CMS\Extbase\Reflection\ObjectAccess;
index df42200..4d01188 100644 (file)
@@ -8,6 +8,9 @@
 
 namespace SFC\NcStaticfilecache\Utility;
 
+use TYPO3\CMS\Core\Cache\CacheManager;
+use TYPO3\CMS\Core\Cache\Exception\NoSuchCacheException;
+use TYPO3\CMS\Core\Cache\Frontend\FrontendInterface;
 use TYPO3\CMS\Extbase\Object\ObjectManager;
 
 /**
@@ -21,12 +24,12 @@ class CacheUtility
     /**
      * Get the static file cache
      *
-     * @return \TYPO3\CMS\Core\Cache\Frontend\FrontendInterface
-     * @throws \TYPO3\CMS\Core\Cache\Exception\NoSuchCacheException
+     * @return FrontendInterface
+     * @throws NoSuchCacheException
      */
     public static function getCache()
     {
-        /** @var \TYPO3\CMS\Core\Cache\CacheManager $cacheManager */
+        /** @var CacheManager $cacheManager */
         $objectManager = new ObjectManager();
         $cacheManager = $objectManager->get(CacheManager::class);
         return $cacheManager->getCache('static_file_cache');