Actions
Bug #105554
openEnable Extbase to be used in console commands
Status:
Accepted
Priority:
Should have
Assignee:
-
Category:
CLI
Target version:
-
Start date:
2024-11-07
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
13
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
There are valid reasons to use components of Extbase such as Repositories inside a CLI.
Currently you have to employ a workaround like
Bootstrap::initializeBackendAuthentication(); $configurationManager = GeneralUtility::makeInstance(ConfigurationManagerInterface::class); $configurationManager->setRequest( (new ServerRequest())->withAttribute('applicationType', SystemEnvironmentBuilder::REQUESTTYPE_BE) );
And make sure that your Exbase classes are not injected but retrieved with GU:makeInstance.
Updated by Benjamin Franzke about 1 month ago
- Status changed from New to Accepted
Updated by Garvin Hicking 22 days ago
- Has duplicate Bug #105616: Extbase repository call from command leads to: ConfigurationManager has not been initialized properly added
Actions