[TASK] Throw exception when CLI command is added twice 16/51316/4
authorBenni Mack <benni@typo3.org>
Sun, 15 Jan 2017 13:22:44 +0000 (14:22 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Tue, 14 Feb 2017 19:57:17 +0000 (20:57 +0100)
commit0cb1c514c1a8ebb0ae8a392f6deca26a0be9c900
treeed1a8a141077f2c550a7e8c13348557c7f54e2ad
parent7a71cdc21cd33f8f5cf879d28288ce06e63e0956
[TASK] Throw exception when CLI command is added twice

If two extensions register the same command, the "last one"
wins currently.

The patch throws an exception if there is already a name
or alias with this command name.

Resolves: #79590
Releases: master
Change-Id: Iaafb97d88455077ab60689c32dda0580c47e0b47
Reviewed-on: https://review.typo3.org/51316
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/core/Classes/Console/CommandNameAlreadyInUseException.php [new file with mode: 0644]
typo3/sysext/core/Classes/Console/CommandRequestHandler.php