Skip to content

Commit

Permalink
Cleanup fix cs
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesbochmann committed Jan 8, 2024
1 parent 60a3cca commit a1ca62b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Configuration/RequestMiddlewares.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
],
Expand Down
8 changes: 4 additions & 4 deletions ext_localconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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'],
];
}
Expand Down

0 comments on commit a1ca62b

Please sign in to comment.