Add deprecation notice

This commit is contained in:
Philipp 2025-01-02 13:03:28 +01:00
parent 9cdc1dde0e
commit efa912c373
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
4 changed files with 11 additions and 0 deletions

View file

@ -5,6 +5,8 @@
* SPDX-FileCopyrightText: 2010-2024 the Friendica project * SPDX-FileCopyrightText: 2010-2024 the Friendica project
* *
* SPDX-License-Identifier: AGPL-3.0-or-later * SPDX-License-Identifier: AGPL-3.0-or-later
*
* @deprecated 2025.01 use bin/console.php daemon instead
*/ */
/** /**

View file

@ -6,6 +6,7 @@
* *
* SPDX-License-Identifier: AGPL-3.0-or-later * SPDX-License-Identifier: AGPL-3.0-or-later
* *
* @deprecated 2025.01 use bin/console.php jetstream instead
*/ */
use Dice\Dice; use Dice\Dice;

View file

@ -90,6 +90,10 @@ HELP;
protected function doExecute() protected function doExecute()
{ {
if ($this->executable != 'bin/console.php') {
$this->out(sprintf("Deprecated use of '%s', use '%s daemon' instead", $this->executable, 'bin/console.php'));
}
if ($this->mode->isInstall()) { if ($this->mode->isInstall()) {
throw new RuntimeException("Friendica isn't properly installed yet"); throw new RuntimeException("Friendica isn't properly installed yet");
} }

View file

@ -77,6 +77,10 @@ HELP;
protected function doExecute() protected function doExecute()
{ {
if ($this->executable != 'bin/console.php') {
$this->out(sprintf("Deprecated use of '%s', use '%s jetstream' instead", $this->executable, 'bin/console.php'));
}
if ($this->mode->isInstall()) { if ($this->mode->isInstall()) {
throw new RuntimeException("Friendica isn't properly installed yet"); throw new RuntimeException("Friendica isn't properly installed yet");
} }