mirror of
https://github.com/friendica/friendica
synced 2025-01-09 02:04:42 +00:00
Extract register error handler into separate method
This commit is contained in:
parent
3c4da64348
commit
7d10d04768
1 changed files with 5 additions and 0 deletions
|
@ -123,6 +123,8 @@ class App
|
||||||
{
|
{
|
||||||
$this->setupContainerForRunningFrontend($request);
|
$this->setupContainerForRunningFrontend($request);
|
||||||
|
|
||||||
|
$this->registerErrorHandler();
|
||||||
|
|
||||||
$this->requestId = $this->container->create(Request::class)->getRequestId();
|
$this->requestId = $this->container->create(Request::class)->getRequestId();
|
||||||
$this->auth = $this->container->create(Authentication::class);
|
$this->auth = $this->container->create(Authentication::class);
|
||||||
$this->config = $this->container->create(IManageConfigValues::class);
|
$this->config = $this->container->create(IManageConfigValues::class);
|
||||||
|
@ -167,7 +169,10 @@ class App
|
||||||
]);
|
]);
|
||||||
|
|
||||||
\Friendica\DI::init($this->container);
|
\Friendica\DI::init($this->container);
|
||||||
|
}
|
||||||
|
|
||||||
|
private function registerErrorHandler(): void
|
||||||
|
{
|
||||||
\Friendica\Core\Logger\Handler\ErrorHandler::register($this->container->create(LoggerInterface::class));
|
\Friendica\Core\Logger\Handler\ErrorHandler::register($this->container->create(LoggerInterface::class));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue