mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +00:00
Remove InstallCommandMock
This commit is contained in:
parent
c372d68cc1
commit
8f20df6559
3 changed files with 23 additions and 27 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue