diff --git a/Configuration/RequestMiddlewares.php b/Configuration/RequestMiddlewares.php index 72499e7..15e01f5 100644 --- a/Configuration/RequestMiddlewares.php +++ b/Configuration/RequestMiddlewares.php @@ -25,7 +25,7 @@ return [ 'frontend' => [ 'dmk/mkvarnish/set-varnish-headers' => [ - 'target' => \DMK\Mkvarnish\Middleware\VarnishHeadersMiddleware::class, + 'target' => DMK\Mkvarnish\Middleware\VarnishHeadersMiddleware::class, 'after' => [ 'typo3/cms-frontend/tsfe', ], diff --git a/ext_localconf.php b/ext_localconf.php index fdb1db3..efb45b8 100644 --- a/ext_localconf.php +++ b/ext_localconf.php @@ -26,13 +26,13 @@ call_user_func( function () { - $configurationUtility = new \DMK\Mkvarnish\Utility\Configuration(); + $configurationUtility = new DMK\Mkvarnish\Utility\Configuration(); $typoScriptSetup = ''; if ($configurationUtility->isSendCacheHeadersEnabled()) { $typoScriptSetup .= 'config.sendCacheHeaders = 1'; } - \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript( + TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript( 'varnish', 'setup', $typoScriptSetup, @@ -41,8 +41,8 @@ function () { if ($configurationUtility->isSendCacheHeadersEnabled()) { $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['varnish'] = [ - 'backend' => \DMK\Mkvarnish\Cache\VarnishBackend::class, - 'frontend' => \TYPO3\CMS\Core\Cache\Frontend\VariableFrontend::class, + 'backend' => DMK\Mkvarnish\Cache\VarnishBackend::class, + 'frontend' => TYPO3\CMS\Core\Cache\Frontend\VariableFrontend::class, 'groups' => ['pages', 'all'], ]; }