Closed guelzow closed 3 years ago
After thinking about this for a while, there may be a better alternative esp. because the config array passed to the cache adapter is deprecated as you've already noticed.
The getBody()
and getHeader()
methods accept a parameter to distinguish different plugin instances and this could be used for the types as well:
https://github.com/aimeos/aimeos-typo3/blob/master/Classes/Controller/AbstractController.php#L164-L166
e.g.:
return $client->getBody( $pageType );
Thanks a lot
Thanks for the patience (and the review). Took me a while to start the pull request.
Hi everyone.
Please review, test and comment. 😃
We retrieve the page type via the global request object, if available. This object is used all over the TYPO3 core, so I guess this is OK'ish.
Tobi