Replace global $argv with $_SERVER

This commit is contained in:
Art4 2024-12-26 07:39:43 +00:00
parent 486a6ba8c6
commit 907e07a4c4

View file

@ -31,4 +31,4 @@ $dice = $dice->addRule(LoggerInterface::class, ['constructParams' => [LogChannel
DI::init($dice); DI::init($dice);
\Friendica\Core\Logger\Handler\ErrorHandler::register($dice->create(\Psr\Log\LoggerInterface::class)); \Friendica\Core\Logger\Handler\ErrorHandler::register($dice->create(\Psr\Log\LoggerInterface::class));
(new Friendica\Core\Console($dice, $argv))->execute(); (new Friendica\Core\Console($dice, $_SERVER['argv'] ?? []))->execute();