Issue Bug Closed

#94015GeneralUtility::xml2array() can't be used in Guzzle middleware

David Bruchmann 04/29/21, 10:39 updated 02/19/22, 16:50

Description

Using a middleware like this:

# Add custom middleware to default Guzzle handler stack
$GLOBALS['TYPO3_CONF_VARS']['HTTP']['handler'][] =
   (\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\ACME\Middleware\Guzzle\CustomMiddleware::class))->handler();

it’s not possible to use xml2array, instead an error-message is thrown:

[CRITICAL] request="c379d512eb551" component="TYPO3.CMS.Core.Error.ProductionExceptionHandler": Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1549446998: TYPO3\CMS\Core\Cache\CacheManager can not be injected/instantiated during ext_localconf.php loading. Use lazy loading instead. | LogicException thrown in file typo3/sysext/core/Classes/ServiceProvider.php in line 97.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.