Feature #89139
closedEpic #83968: PSR-11 Initiative
Symfony Console Commands should be able to use dependency injection
100%
Description
The CommandRegistry instantiates all Commands with a constructor argument (command name).
That means GeneralUtility::makeInstance can not offload to the dependency injection container.
Furthermore all commands are instantiates (always), independent from the command that is actually executed.
It should be made possible to use dependency injection for commands.
Bonus would be registration of console commands via DI tags.
Updated by Gerrit Code Review about 5 years ago
- Status changed from New to Under Review
Patch set 12 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61630
Updated by Gerrit Code Review about 5 years ago
Patch set 13 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61630
Updated by Gerrit Code Review almost 5 years ago
Patch set 14 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61630
Updated by Gerrit Code Review almost 5 years ago
Patch set 15 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61630
Updated by Gerrit Code Review almost 5 years ago
Patch set 16 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61630
Updated by Gerrit Code Review almost 5 years ago
Patch set 17 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61630
Updated by Gerrit Code Review almost 5 years ago
Patch set 18 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61630
Updated by Gerrit Code Review almost 5 years ago
Patch set 19 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61630
Updated by Gerrit Code Review almost 5 years ago
Patch set 20 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61630
Updated by Benjamin Franzke almost 5 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 0360ef3b4a9f34e4441b95f6d9071bb49ae1f432.
Updated by Helmut Hummel over 4 years ago
- Related to Bug #90450: Defining an alias for a command overwrites its original command name added
Updated by Benjamin Franzke over 4 years ago
- Related to Task #91534: Remove deprecated Commands.php loading added