Project

General

Profile

Actions

Bug #94015

closed

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

Added by David Bruchmann about 3 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2021-04-29
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.2
Tags:
Complexity:
hard
Is Regression:
Sprint Focus:

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.

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #94701: Dashboard breaks if Guzzle Middleware is usedClosed2021-08-03

Actions
Actions

Also available in: Atom PDF