undkonsorten / extbase-cli-aware-configuration-manager
Get Extbase injections working in your TYPO3 project by configuring the site to be used for settings and TypoScript
Installs: 40
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:typo3-cms-extension
Requires
- typo3/cms-core: ^13.4
- typo3/cms-extbase: ^13.4
README
This extension provides a configuration manager for cli context in TYPO3.
So if you need for example typoscript settings in cli context e.g. commands this extension helps to do so.
The extension needs to be configured in the Service.yaml or Service.php:
TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface:
alias: 'Undkonsorten\ExtbaseCliAwareConfigurationManager\Configuration\CliAwareConfigurationManager'
public: true
Undkonsorten\ExtbaseCliAwareConfigurationManager\Configuration\CommandLineInterfaceConfigurationManager:
arguments:
$siteIdentifier: 'SomeSiteIdentifier'
The extension will look for typoscript setting on the site with identifier 'SomeSiteIdentifier'.
This extension also solves the problem using extbase repositories within cli context e.g. this error:
[ RuntimeException ]
No request given. ConfigurationManager has not been initialized properly.
For more information about this problem/topic: https://forge.typo3.org/issues/105554 https://forge.typo3.org/issues/105616