Project

General

Profile

Actions

Bug #76714

closed

Overloading classes in CLI-mode, based on extension/plugin

Added by Viktor Livakivskyi over 8 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2016-06-21
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.6
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

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.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #87623: Replace config.persistence.classes typoscriptClosed2019-02-02

Actions
Actions

Also available in: Atom PDF