require dirname(__DIR__) . '/vendor/autoload.php';
+fwrite(STDOUT, '`bin/daemon.php` is deprecated since 2024.02 and will be removed in 5 months, please use `bin/console.php daemon` instead.' . \PHP_EOL);
+
+ // BC: Add console command as second argument
$argv = $_SERVER['argv'] ?? [];
array_splice($argv, 1, 0, "daemon");
+ $_SERVER['argv'] = $argv;
$container = \Friendica\Core\DiceContainer::fromBasePath(dirname(__DIR__));
require dirname(__DIR__) . '/vendor/autoload.php';
+fwrite(STDOUT, '`bin/jetstream.php` is deprecated since 2024.02 and will be removed in 5 months, please use `bin/console.php jetstream` instead.' . \PHP_EOL);
+
+ // BC: Add console command as second argument
$argv = $_SERVER['argv'] ?? [];
array_splice($argv, 1, 0, "jetstream");
+ $_SERVER['argv'] = $argv;
$container = \Friendica\Core\DiceContainer::fromBasePath(dirname(__DIR__));
require dirname(__DIR__) . '/vendor/autoload.php';
+fwrite(STDOUT, '`bin/worker.php` is deprecated since 2024.02 and will be removed in 5 months, please use `bin/console.php worker` instead.' . \PHP_EOL);
+
+ // BC: Add console command as second argument
$argv = $_SERVER['argv'] ?? [];
array_splice($argv, 1, 0, "worker");
+ $_SERVER['argv'] = $argv;
$container = \Friendica\Core\DiceContainer::fromBasePath(dirname(__DIR__));
);
}
-
+ /**
+ * @internal
+ */
- public function processConsole(array $argv): void
+ public function processConsole(array $serverParams): void
{
+ $argv = $serverParams['argv'] ?? [];
+
$this->setupContainerForAddons();
$this->setupLogChannel($this->determineLogChannel($argv));
(\Friendica\Core\Console::create($this->container, $argv))->execute();
}
- public function processEjabberd(): void
+ /**
+ * @internal
+ */
+ public function processEjabberd(array $serverParams): void
{
$this->setupContainerForAddons();