[TYPO3-english] Overloading classes in CLI-mode, based on extension/plugin

Viktor Livakivskyi invisible.kinder at gmail.com
Mon Jun 20 12:04:27 CEST 2016

Hi, List.

I'm defining some concrete classes for interfaces in my extension by TypoScript, and since I don't want to interfere with other extensions, I'm doing it within 'plugin' section:
plugin.tx_myext {
	objects {
		Vendor\MyExt\Service\MyServiceInterface {
			className = Vendor\MyExt\Service\RestMyService
		Psr\Http\Message\RequestInterface {
			className = GuzzleHttp\Psr7\Request

That works fine in FE mode, but doesn't work in CLI mode.

And, yes, I've added following line to my TS: 
module.tx_myext < plugin.tx_myext

When I'm defining my overloads globally via "config.tx_extbase", then it works fine, but this is not my initially desired result.

Is there any way to make CLI context to be aware of local overrides?

More information about the TYPO3-english mailing list