[TASK] Use TYPO3_version constant for Extbase help command 50/52150/2
authorBenni Mack <benni@typo3.org>
Sat, 25 Mar 2017 16:03:36 +0000 (17:03 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 25 Mar 2017 18:43:22 +0000 (19:43 +0100)
The output which version of Extbase is used, does not need to be
fetched via getExtensionVersion() of EXT:extbase. The TYPO3_version
contains the same information as the information in EXT:extbase/ext_emconf.php.

Resolves: #80438
Releases: master
Change-Id: I69be6c5949f39dac2c6a953d74c6cbfa7eaecd35
Reviewed-on: https://review.typo3.org/52150
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/extbase/Classes/Command/HelpCommandController.php

index 9d43e58..0f20eb7 100644 (file)
@@ -50,7 +50,7 @@ class HelpCommandController extends \TYPO3\CMS\Extbase\Mvc\Controller\CommandCon
      */
     public function helpStubCommand()
     {
      */
     public function helpStubCommand()
     {
-        $this->outputLine('Extbase %s', [\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getExtensionVersion('extbase')]);
+        $this->outputLine('Extbase %s', [TYPO3_version]);
         $this->outputLine('usage: ' . $this->request->getCallingScript() . ' <command identifier>');
         $this->outputLine();
         $this->outputLine('See \'' . $this->request->getCallingScript() . ' help\' for a list of all available commands.');
         $this->outputLine('usage: ' . $this->request->getCallingScript() . ' <command identifier>');
         $this->outputLine();
         $this->outputLine('See \'' . $this->request->getCallingScript() . ' help\' for a list of all available commands.');
@@ -87,7 +87,7 @@ class HelpCommandController extends \TYPO3\CMS\Extbase\Mvc\Controller\CommandCon
     protected function displayHelpIndex()
     {
         $this->buildCommandsIndex();
     protected function displayHelpIndex()
     {
         $this->buildCommandsIndex();
-        $this->outputLine('Extbase %s', [\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getExtensionVersion('extbase')]);
+        $this->outputLine('Extbase %s', [TYPO3_version]);
         $this->outputLine('usage: ' . $this->request->getCallingScript() . ' <command identifier>');
         $this->outputLine();
         $this->outputLine('The following commands are currently available:');
         $this->outputLine('usage: ' . $this->request->getCallingScript() . ' <command identifier>');
         $this->outputLine();
         $this->outputLine('The following commands are currently available:');