mirror of
https://github.com/friendica/friendica
synced 2025-04-27 11:10:12 +00:00
Move registerErrorHandler() into App class
This commit is contained in:
parent
04fb9dd9e0
commit
633c692083
2 changed files with 13 additions and 10 deletions
|
@ -11,7 +11,6 @@ namespace Friendica\Core;
|
|||
|
||||
use Dice\Dice;
|
||||
use Friendica\Core\Logger\Capability\LogChannel;
|
||||
use Friendica\Core\Logger\Handler\ErrorHandler;
|
||||
use Friendica\DI;
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
||||
|
@ -49,7 +48,6 @@ final class DiceContainer implements Container
|
|||
{
|
||||
$this->setupContainerForLogger($logChannel);
|
||||
$this->setupLegacyServiceLocator();
|
||||
$this->registerErrorHandler();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -89,9 +87,4 @@ final class DiceContainer implements Container
|
|||
{
|
||||
DI::init($this->container);
|
||||
}
|
||||
|
||||
private function registerErrorHandler(): void
|
||||
{
|
||||
ErrorHandler::register($this->container->create(LoggerInterface::class));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue