1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-15 18:57:05 +00:00

Remove InstallCommandMock

This commit is contained in:
Yassine Guedidi 2022-09-03 02:17:36 +02:00 committed by Jérémy Benoist
parent c372d68cc1
commit 8f20df6559
3 changed files with 23 additions and 27 deletions

View file

@ -41,6 +41,13 @@ class InstallCommand extends ContainerAwareCommand
'curl_multi_init',
];
private bool $runOtherCommands = true;
public function disableRunOtherCommands(): void
{
$this->runOtherCommands = false;
}
protected function configure()
{
$this
@ -315,6 +322,10 @@ class InstallCommand extends ContainerAwareCommand
*/
protected function runCommand($command, $parameters = [])
{
if (!$this->runOtherCommands) {
return $this;
}
$parameters = array_merge(
['command' => $command],
$parameters,