From 23fcb4f87fd87b29c9585ce5699bdd93cfbabfc7 Mon Sep 17 00:00:00 2001 From: Art4 Date: Wed, 22 Jan 2025 15:47:49 +0000 Subject: [PATCH] Dont show deprecation message twice --- src/Console/Daemon.php | 5 ++--- src/Console/JetstreamDaemon.php | 5 ++--- src/Console/Worker.php | 5 ++--- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/Console/Daemon.php b/src/Console/Daemon.php index c8165a1d9b..f115ec0b66 100644 --- a/src/Console/Daemon.php +++ b/src/Console/Daemon.php @@ -10,6 +10,7 @@ declare(strict_types=1); namespace Friendica\Console; use Asika\SimpleConsole\CommandArgsException; +use Asika\SimpleConsole\Console; use Friendica\App\Mode; use Friendica\Core\Config\Capability\IManageConfigValues; use Friendica\Core\KeyValueStorage\Capability\IManageKeyValuePairs; @@ -27,7 +28,7 @@ use RuntimeException; /** * Console command for interacting with the daemon */ -final class Daemon extends AbstractConsole +final class Daemon extends Console { public const LOG_CHANNEL = LogChannel::DAEMON; @@ -93,8 +94,6 @@ HELP; protected function doExecute() { - $this->checkDeprecated('daemon'); - if ($this->mode->isInstall()) { throw new RuntimeException("Friendica isn't properly installed yet"); } diff --git a/src/Console/JetstreamDaemon.php b/src/Console/JetstreamDaemon.php index d34e5780c2..6071e01f49 100644 --- a/src/Console/JetstreamDaemon.php +++ b/src/Console/JetstreamDaemon.php @@ -9,6 +9,7 @@ declare(strict_types=1); namespace Friendica\Console; +use Asika\SimpleConsole\Console; use Friendica\App\Mode; use Friendica\Core\Addon; use Friendica\Core\Config\Capability\IManageConfigValues; @@ -22,7 +23,7 @@ use RuntimeException; /** * Console command for interacting with the daemon */ -final class JetstreamDaemon extends AbstractConsole +final class JetstreamDaemon extends Console { public const LOG_CHANNEL = LogChannel::DAEMON; @@ -79,8 +80,6 @@ HELP; protected function doExecute() { - $this->checkDeprecated('jetstream'); - if ($this->mode->isInstall()) { throw new RuntimeException("Friendica isn't properly installed yet"); } diff --git a/src/Console/Worker.php b/src/Console/Worker.php index 1c7eeae002..41de4f1764 100644 --- a/src/Console/Worker.php +++ b/src/Console/Worker.php @@ -9,6 +9,7 @@ declare(strict_types=1); namespace Friendica\Console; +use Asika\SimpleConsole\Console; use Friendica\App\Mode; use Friendica\Core\Logger\Capability\LogChannel; use Friendica\Core\Update; @@ -19,7 +20,7 @@ use Friendica\Util\BasePath; /** * Console command for starting worker */ -final class Worker extends AbstractConsole +final class Worker extends Console { public const LOG_CHANNEL = LogChannel::WORKER; @@ -69,8 +70,6 @@ HELP; protected function doExecute() { - $this->checkDeprecated('worker'); - $this->mode->setExecutor(Mode::WORKER); // Check the database structure and possibly fixes it