mirror of
https://github.com/friendica/friendica
synced 2025-02-06 23:38:50 +00:00
Dont show deprecation message twice
This commit is contained in:
parent
69830b9c03
commit
23fcb4f87f
3 changed files with 6 additions and 9 deletions
|
@ -10,6 +10,7 @@ declare(strict_types=1);
|
||||||
namespace Friendica\Console;
|
namespace Friendica\Console;
|
||||||
|
|
||||||
use Asika\SimpleConsole\CommandArgsException;
|
use Asika\SimpleConsole\CommandArgsException;
|
||||||
|
use Asika\SimpleConsole\Console;
|
||||||
use Friendica\App\Mode;
|
use Friendica\App\Mode;
|
||||||
use Friendica\Core\Config\Capability\IManageConfigValues;
|
use Friendica\Core\Config\Capability\IManageConfigValues;
|
||||||
use Friendica\Core\KeyValueStorage\Capability\IManageKeyValuePairs;
|
use Friendica\Core\KeyValueStorage\Capability\IManageKeyValuePairs;
|
||||||
|
@ -27,7 +28,7 @@ use RuntimeException;
|
||||||
/**
|
/**
|
||||||
* Console command for interacting with the daemon
|
* Console command for interacting with the daemon
|
||||||
*/
|
*/
|
||||||
final class Daemon extends AbstractConsole
|
final class Daemon extends Console
|
||||||
{
|
{
|
||||||
public const LOG_CHANNEL = LogChannel::DAEMON;
|
public const LOG_CHANNEL = LogChannel::DAEMON;
|
||||||
|
|
||||||
|
@ -93,8 +94,6 @@ HELP;
|
||||||
|
|
||||||
protected function doExecute()
|
protected function doExecute()
|
||||||
{
|
{
|
||||||
$this->checkDeprecated('daemon');
|
|
||||||
|
|
||||||
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");
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||||
|
|
||||||
namespace Friendica\Console;
|
namespace Friendica\Console;
|
||||||
|
|
||||||
|
use Asika\SimpleConsole\Console;
|
||||||
use Friendica\App\Mode;
|
use Friendica\App\Mode;
|
||||||
use Friendica\Core\Addon;
|
use Friendica\Core\Addon;
|
||||||
use Friendica\Core\Config\Capability\IManageConfigValues;
|
use Friendica\Core\Config\Capability\IManageConfigValues;
|
||||||
|
@ -22,7 +23,7 @@ use RuntimeException;
|
||||||
/**
|
/**
|
||||||
* Console command for interacting with the daemon
|
* Console command for interacting with the daemon
|
||||||
*/
|
*/
|
||||||
final class JetstreamDaemon extends AbstractConsole
|
final class JetstreamDaemon extends Console
|
||||||
{
|
{
|
||||||
public const LOG_CHANNEL = LogChannel::DAEMON;
|
public const LOG_CHANNEL = LogChannel::DAEMON;
|
||||||
|
|
||||||
|
@ -79,8 +80,6 @@ HELP;
|
||||||
|
|
||||||
protected function doExecute()
|
protected function doExecute()
|
||||||
{
|
{
|
||||||
$this->checkDeprecated('jetstream');
|
|
||||||
|
|
||||||
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");
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
||||||
|
|
||||||
namespace Friendica\Console;
|
namespace Friendica\Console;
|
||||||
|
|
||||||
|
use Asika\SimpleConsole\Console;
|
||||||
use Friendica\App\Mode;
|
use Friendica\App\Mode;
|
||||||
use Friendica\Core\Logger\Capability\LogChannel;
|
use Friendica\Core\Logger\Capability\LogChannel;
|
||||||
use Friendica\Core\Update;
|
use Friendica\Core\Update;
|
||||||
|
@ -19,7 +20,7 @@ use Friendica\Util\BasePath;
|
||||||
/**
|
/**
|
||||||
* Console command for starting worker
|
* Console command for starting worker
|
||||||
*/
|
*/
|
||||||
final class Worker extends AbstractConsole
|
final class Worker extends Console
|
||||||
{
|
{
|
||||||
public const LOG_CHANNEL = LogChannel::WORKER;
|
public const LOG_CHANNEL = LogChannel::WORKER;
|
||||||
|
|
||||||
|
@ -69,8 +70,6 @@ HELP;
|
||||||
|
|
||||||
protected function doExecute()
|
protected function doExecute()
|
||||||
{
|
{
|
||||||
$this->checkDeprecated('worker');
|
|
||||||
|
|
||||||
$this->mode->setExecutor(Mode::WORKER);
|
$this->mode->setExecutor(Mode::WORKER);
|
||||||
|
|
||||||
// Check the database structure and possibly fixes it
|
// Check the database structure and possibly fixes it
|
||||||
|
|
Loading…
Add table
Reference in a new issue