array_splice($argv, 1, 0, "daemon");
$container = \Friendica\Core\Container::fromDice($dice);
-\Friendica\Core\Console::create($container, $_SERVER['argv'] ?? [])->execute();
+\Friendica\Core\Console::create($container, $argv)->execute();
array_splice($argv, 1, 0, "jetstream");
$container = \Friendica\Core\Container::fromDice($dice);
-\Friendica\Core\Console::create($container, $_SERVER['argv'] ?? [])->execute();
+\Friendica\Core\Console::create($container, $argv)->execute();
array_splice($argv, 1, 0, "worker");
$container = \Friendica\Core\Container::fromDice($dice);
-\Friendica\Core\Console::create($container, $_SERVER['argv'] ?? [])->execute();
+\Friendica\Core\Console::create($container, $argv)->execute();
protected function doExecute()
{
- if ($this->executable !== 'bin/console.php') {
+ if (substr($this->executable,-strlen('bin/console.php')) !== 'bin/console.php') {
$this->out(sprintf("'%s' is deprecated and will removed. Please use 'bin/console.php daemon' instead", $this->executable));
}
throw new RuntimeException("Friendica isn't properly installed yet");
}
- $this->logger->warning('blah!');
-
$this->mode->setExecutor(Mode::DAEMON);
$this->config->reload();
*/
final class JetstreamDaemon extends AbstractConsole
{
- public const LOG_CHANNEL = LogChannel::AUTH_JABBERED;
+ public const LOG_CHANNEL = LogChannel::DAEMON;
private Mode $mode;
private IManageConfigValues $config;