X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=bin%2Fconsole.php;h=e1bc6b498547f4e15e368ad429c489333a474bd9;hb=010d7fb723f703df28b2cdebeb870387ef30217c;hp=8305176157661a4dc5f5e345d95a97d9094a2dc8;hpb=ec5bd9a756ae2273dbe5915b0b1fd60f0320896a;p=friendica.git diff --git a/bin/console.php b/bin/console.php index 8305176157..e1bc6b4985 100755 --- a/bin/console.php +++ b/bin/console.php @@ -1,7 +1,7 @@ #!/usr/bin/env php addRules(include __DIR__ . '/../static/dependencies.config.php'); $dice = $dice->addRule(LoggerInterface::class,['constructParams' => ['console']]); +/// @fixme Necessary until Hooks inside the Logger can get loaded without the DI-class +DI::init($dice); \Friendica\Core\Logger\Handler\ErrorHandler::register($dice->create(\Psr\Log\LoggerInterface::class)); (new Friendica\Core\Console($dice, $argv))->execute();