[FEATURE] Use Symfony Console in CliRequestHandler 95/42295/4
authorBenjamin Mack <benni@typo3.org>
Wed, 5 Aug 2015 20:24:12 +0000 (22:24 +0200)
committerSusanne Moog <typo3@susannemoog.de>
Thu, 6 Aug 2015 17:26:16 +0000 (19:26 +0200)
commit68d97c69a2c5b6e5d58e3fb358c54829a2d296f6
treea1d3079f3cf0cf69f9a0319839c01250773036ea
parentdf4e85c0aca3b15bffd22ad4773c99b3b3d84fe4
[FEATURE] Use Symfony Console in CliRequestHandler

The logic for outputting the default checks when calling cli_dispatch.phpsh is now using Symfony Console showing
colored error messages when entering wrong cliKeys.

The global variable $GLOBALS['MCONF']['name'] which was
mis-used to transfer information between the CLI RequestHandler
and the BackendUser (only when in CLI mode) for authentication
was removed, as all the logic is now available inside the CliRequestHandler and can be resolved there already.

The call "$BE_USER->checkCLIuser()" on every backend request
is now removed and the method itself is now marked for deprecation,
as the same functionality (except for using exceptions instead of fwrite() calls) is now in CliRequestHandler.

The two constants TYPO3_cliKey and TYPO3_cliInclude have
been marked internally as deprecated, as they are not in use
anymore.

Resolves: #68804
Releases: master
Change-Id: Ia7730d43dd970fd33daeb78e538c8d4deb741d93
Reviewed-on: http://review.typo3.org/42295
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Susanne Moog <typo3@susannemoog.de>
Tested-by: Susanne Moog <typo3@susannemoog.de>
typo3/sysext/backend/Classes/Console/CliRequestHandler.php
typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php
typo3/sysext/core/Classes/Core/Bootstrap.php
typo3/sysext/core/Documentation/Changelog/master/Deprecation-68804-CLI-relatedConstantsAndMethods.rst [new file with mode: 0644]
typo3/sysext/core/Documentation/Changelog/master/Feature-68804-ColoredOutputForCLI-relevantErrorMessages.rst [new file with mode: 0644]