Dont show deprecation message twice

This commit is contained in:
Art4 2025-01-22 15:47:49 +00:00
parent 69830b9c03
commit 23fcb4f87f
3 changed files with 6 additions and 9 deletions

View 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");
}

View 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");
}

View 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