[TASK] Introduce command registry to aggregate console commands 20/54120/22
authorAlexander Schnitzler <git@alexanderschnitzler.de>
Mon, 11 Sep 2017 16:52:08 +0000 (18:52 +0200)
committerHelmut Hummel <typo3@helhum.io>
Mon, 18 Sep 2017 12:14:23 +0000 (14:14 +0200)
commitcef9d8c205f524c5cae8b0e990307a2c6d8aa66c
tree191cac036953ec4f182f5aad4a9c7eecd246431a
parent938a5107b49b9941d18073804e467fd7de881f9b
[TASK] Introduce command registry to aggregate console commands

This introduces an iterable command registry that
aggregates commands from Configuration/Commands.php files.
To speed things up for subsequent usage, a first level cache is used.

Resolves: #82455
Releases: master
Change-Id: Ibd123ef947d06939bc84f5ea609996fec85de6e8
Reviewed-on: https://review.typo3.org/54120
Reviewed-by: Helmut Hummel <typo3@helhum.io>
Tested-by: Helmut Hummel <typo3@helhum.io>
Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de>
Tested-by: Mathias Brodala <mbrodala@pagemachine.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Alexander Schnitzler <review.typo3.org@alexanderschnitzler.de>
Tested-by: Alexander Schnitzler <review.typo3.org@alexanderschnitzler.de>
typo3/sysext/core/Classes/Console/CommandRegistry.php [new file with mode: 0644]
typo3/sysext/core/Classes/Console/CommandRequestHandler.php
typo3/sysext/core/Tests/Unit/Console/CommandRegistryTest.php [new file with mode: 0644]