]> git.mxchange.org Git - friendica.git/commitdiff
Dont show deprecation message twice
authorArt4 <art4@wlabs.de>
Wed, 22 Jan 2025 15:47:49 +0000 (15:47 +0000)
committerArt4 <art4@wlabs.de>
Wed, 22 Jan 2025 15:47:49 +0000 (15:47 +0000)
src/Console/Daemon.php
src/Console/JetstreamDaemon.php
src/Console/Worker.php

index c8165a1d9b2722bdc060e4f13e54058dc86665a1..f115ec0b66681687de63bc756f64b8e46166dc58 100644 (file)
@@ -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");
                }
index d34e5780c24de73a0f5d6f09f8ac152d0dafb4db..6071e01f4927dad292c8919465ce040768011948 100644 (file)
@@ -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");
                }
index 1c7eeae0024c21b0f443c0e296667d49072404d1..41de4f1764d8a5fae39e96460273a284af9451e5 100644 (file)
@@ -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