[TASK] Ensure that cli user is admin on extension install and uninstall
Extension install and uninstall is an admin task. Calling the belonging
CommandController on cli should ensure, that the user has admin
rights.
This adds API to the CommandController to avoid code duplication
in every controller to achieve this.
Distribution packages could be installed via cli without errors now.
Resolves: #59556
Releases: 6.3, 6.2
Change-Id: Icd1b6bf4379322c8bec07531a15d2171b103e076
Reviewed-on: https://review.typo3.org/30715
Reviewed-by: Ernesto Baschny
Tested-by: Ernesto Baschny
Reviewed-on: https://review.typo3.org/30885