Skip to content

Commit

Permalink
Merge pull request #2 from cron-eu/symfony-4-postfix
Browse files Browse the repository at this point in the history
In Symfony 4, execute() needs to return an int always
  • Loading branch information
baschny authored Mar 29, 2022
2 parents 54bd505 + a63c89e commit 0b2a414
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/app/CliTools/Console/Command/Common/FixRightsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ public function execute(InputInterface $input, OutputInterface $output)
$this->setRights($entry);
}
}

return 0;
}

/**
Expand Down
2 changes: 2 additions & 0 deletions src/app/CliTools/Console/Command/Common/SelfUpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,7 @@ public function execute(InputInterface $input, OutputInterface $output)
}

$updateService->update($force);

return 0;
}
}
2 changes: 2 additions & 0 deletions src/app/CliTools/Console/Command/Docker/CleanupCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ public function execute(InputInterface $input, OutputInterface $output)
$this->cleanDockerImages();
$this->cleanDockerVolumes();
$output->writeln('<comment>Cleanup finished</comment>');

return 0;
}

/**
Expand Down
2 changes: 2 additions & 0 deletions src/app/CliTools/Console/Command/Mysql/BackupCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ public function execute(InputInterface $input, OutputInterface $output)
$command->executeInteractive();

$output->writeln('<h2>Database "' . $database . '" stored to "' . $dumpFile . '"</h2>');

return 0;
}

/**
Expand Down
2 changes: 2 additions & 0 deletions src/app/CliTools/Console/Command/Sync/AbstractCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,8 @@ public function execute(InputInterface $input, OutputInterface $output)
}

$this->cleanup();

return 0;
}

/**
Expand Down
2 changes: 2 additions & 0 deletions src/app/CliTools/Console/Command/TYPO3/DomainCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ public function execute(InputInterface $input, OutputInterface $output)
// ##############
$this->runTaskForDomain($dbName);
}

return 0;
}

/**
Expand Down
3 changes: 2 additions & 1 deletion src/app/CliTools/Console/Command/Vagrant/ShareCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ public function execute(InputInterface $input, OutputInterface $output)
$vagrant->addArgument('--ssh-once');
}


$vagrant->executeInteractive($opts);

return 0;
}
}

0 comments on commit 0b2a414

Please sign in to comment.