Add extended ErrorHandling

This commit is contained in:
Philipp Holzer 2021-10-23 20:46:17 +02:00
commit acb06af28d
Signed by: nupplaPhil
GPG key ID: 24A7501396EB5432
6 changed files with 322 additions and 1 deletions

View file

@ -33,4 +33,6 @@ require dirname(__DIR__) . '/vendor/autoload.php';
$dice = (new Dice())->addRules(include __DIR__ . '/../static/dependencies.config.php');
$dice = $dice->addRule(LoggerInterface::class,['constructParams' => ['console']]);
\Friendica\Core\Logger\Handler\ErrorHandler::register($dice->create(\Psr\Log\LoggerInterface::class));
(new Friendica\Core\Console($dice, $argv))->execute();