Skip to content

Commit 231f8b2

Browse files
committed
[BUGFIX] Avoid FrontendTypoScript method call on v12
1 parent de472de commit 231f8b2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Classes/Builder/RequestBuilder.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@ public function getServerRequest(): ServerRequestInterface
102102
[]
103103
);
104104
$frontendTypoScript->setSetupArray([]);
105-
$frontendTypoScript->setConfigArray(['cache_clearAtMidnight' => true]);
105+
if (method_exists($frontendTypoScript, 'setConfigArray')) {
106+
$frontendTypoScript->setConfigArray(['cache_clearAtMidnight' => true]);
107+
}
106108
$request = $request->withAttribute('frontend.typoscript', $frontendTypoScript);
107109
}
108110
return $request;

0 commit comments

Comments
 (0)