Centralize deprecated check

This commit is contained in:
Philipp 2025-01-05 23:12:22 +01:00
parent 77c9f54f5c
commit b9dde78466
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
4 changed files with 15 additions and 9 deletions

View file

@ -79,9 +79,7 @@ HELP;
protected function doExecute()
{
if ($this->executable !== 'bin/console.php') {
$this->out(sprintf("'%s' is deprecated and will removed. Please use 'bin/console.php jetstream' instead", $this->executable));
}
$this->checkDeprecated('jetstream');
if ($this->mode->isInstall()) {
throw new RuntimeException("Friendica isn't properly installed yet");