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;
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;
/**
/**
* 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');