Skip to content
Snippets Groups Projects
Commit 0360ef3b authored by Benjamin Franzke's avatar Benjamin Franzke Committed by Benni Mack
Browse files

[FEATURE] Add dependency injection support for console commands

Transform CommandRegistry into a symfony CommandLoader which
allows console commands to be created on demand.
That means commands are lazy loaded in order to avoid creating
all commands with all their dependencies in every console
invocation. Command will now be loaded when they are either
executed or when command metadata is required (e.g. for
the command listing)

The `site:list` command is adapted to make use of dependency injection.

Releases: master
Resolves: #89139
Change-Id: I64256bf2dc21f0f3fe434aa5dff6176f0fe22233
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/61630


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarAchim Fritz <af@achimfritz.de>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarAchim Fritz <af@achimfritz.de>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
parent c46e56e7
No related merge requests found
Showing
with 732 additions and 175 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment