]> git.mxchange.org Git - friendica.git/commitdiff
improve hooks.config.php
authorPhilipp <admin@philipp.info>
Sun, 16 Jul 2023 16:38:41 +0000 (18:38 +0200)
committerPhilipp <admin@philipp.info>
Sun, 16 Jul 2023 16:43:36 +0000 (18:43 +0200)
static/hooks.config.php

index 185bc5e485f2d360c47cb09ea4af5aad9d5bd87c..bc235913c5877b607364eb2311601be2ff8e2cd0 100644 (file)
  */
 
 use Friendica\Core\Hooks\Capabilities\HookType as H;
+use Friendica\Core\Logger\Type;
+use Psr\Log;
 
 return [
        H::STRATEGY  => [
-               \Psr\Log\LoggerInterface::class => [
-                       \Psr\Log\NullLogger::class                      => [''],
-                       \Friendica\Core\Logger\Type\SyslogLogger::class => ['syslog'],
-                       \Friendica\Core\Logger\Type\StreamLogger::class => ['stream'],
+               Log\LoggerInterface::class => [
+                       Log\NullLogger::class    => [''],
+                       Type\SyslogLogger::class => ['syslog'],
+                       Type\StreamLogger::class => ['stream'],
                ],
        ],
        H::DECORATOR => [
-               \Psr\Log\LoggerInterface::class => [
-                       \Friendica\Core\Logger\Type\ProfilerLogger::class,
+               Log\LoggerInterface::class => [
+                       Type\ProfilerLogger::class,
                ],
        ],
 ];