Skip to content
Snippets Groups Projects
Commit 7d469851 authored by Benni Mack's avatar Benni Mack
Browse files

[BUGFIX] Populate loaded commands after ext_tables is loaded

Especially in TYPO3 v8, where TCA is not loaded at all times,
running a CLI command with an empty cache will result in
errors, but for the sake of clean structure, the commands
will be populated when executing the actual command.

Resolves: #80897
Releases: master, 8.7
Change-Id: I7ad33ca86724d94f451c44f68538d5d38e343636
Reviewed-on: https://review.typo3.org/53270


Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarThomas Maroschik <tmaroschik@dfau.de>
Tested-by: default avatarThomas Maroschik <tmaroschik@dfau.de>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarBenni Mack <benni@typo3.org>
parent e440f477
No related merge requests found
......@@ -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;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment