Skip to content

Commit 8273f98

Browse files
committed
fix: fix facade binding in log service
1 parent 894267e commit 8273f98

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/foundation/src/Application.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,10 @@ protected function registerCoreContainerAliases(): void
565565
\Hypervel\Event\Contracts\Dispatcher::class,
566566
],
567567
\Hyperf\HttpServer\Router\DispatcherFactory::class => ['router'],
568-
\Psr\Log\LoggerInterface::class => ['log'],
568+
\Psr\Log\LoggerInterface::class => [
569+
'log',
570+
\Hypervel\Log\LogManager::class,
571+
],
569572
\Hypervel\Encryption\Contracts\Encrypter::class => [
570573
'encrypter',
571574
\Hypervel\Encryption\Encrypter::class,

src/support/src/Facades/Log.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Hypervel\Support\Facades;
66

7-
use Hypervel\Log\LogManager;
7+
use Psr\Log\LoggerInterface;
88

99
/**
1010
* @method static \Psr\Log\LoggerInterface build(array $config)
@@ -43,6 +43,6 @@ class Log extends Facade
4343
{
4444
protected static function getFacadeAccessor()
4545
{
46-
return LogManager::class;
46+
return LoggerInterface::class;
4747
}
4848
}

0 commit comments

Comments
 (0)