Bug #105554
Updated by Benjamin Franzke 14 days ago
There are valid reasons to use components of Extbase such as Repositories inside a CLI. Currently you have to employ a workaround like <pre> Bootstrap::initializeBackendAuthentication(); $configurationManager = GeneralUtility::makeInstance(ConfigurationManagerInterface::class); $configurationManager->setRequest( (new ServerRequest())->withAttribute('applicationType', SystemEnvironmentBuilder::REQUESTTYPE_BE) ); </pre> And make sure that your Exbase classes are not injected but retrieved with GU:makeInstance.