[BUGFIX] Populate loaded commands after ext_tables is loaded
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Console / CommandRequestHandler.php
index e217e3c..f583be9 100644 (file)
@@ -68,6 +68,8 @@ class CommandRequestHandler implements RequestHandlerInterface
             // Make sure output is not buffered, so command-line output and interaction can take place
             ->endOutputBufferingAndCleanPreviousOutput();
 
+        $this->populateAvailableCommands();
+
         $exitCode = $this->application->run($input, $output);
         exit($exitCode);
     }
@@ -80,7 +82,6 @@ class CommandRequestHandler implements RequestHandlerInterface
      */
     public function canHandleRequest(InputInterface $input)
     {
-        $this->populateAvailableCommands();
         return true;
     }