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;
/**
* Console command for interacting with the daemon
*/
-final class Daemon extends AbstractConsole
+final class Daemon extends Console
{
public const LOG_CHANNEL = LogChannel::DAEMON;
protected function doExecute()
{
- $this->checkDeprecated('daemon');
-
if ($this->mode->isInstall()) {
throw new RuntimeException("Friendica isn't properly installed yet");
}
namespace Friendica\Console;
+use Asika\SimpleConsole\Console;
use Friendica\App\Mode;
use Friendica\Core\Addon;
use Friendica\Core\Config\Capability\IManageConfigValues;
/**
* Console command for interacting with the daemon
*/
-final class JetstreamDaemon extends AbstractConsole
+final class JetstreamDaemon extends Console
{
public const LOG_CHANNEL = LogChannel::DAEMON;
protected function doExecute()
{
- $this->checkDeprecated('jetstream');
-
if ($this->mode->isInstall()) {
throw new RuntimeException("Friendica isn't properly installed yet");
}
namespace Friendica\Console;
+use Asika\SimpleConsole\Console;
use Friendica\App\Mode;
use Friendica\Core\Logger\Capability\LogChannel;
use Friendica\Core\Update;
/**
* Console command for starting worker
*/
-final class Worker extends AbstractConsole
+final class Worker extends Console
{
public const LOG_CHANNEL = LogChannel::WORKER;
protected function doExecute()
{
- $this->checkDeprecated('worker');
-
$this->mode->setExecutor(Mode::WORKER);
// Check the database structure and possibly fixes it