Update docs of logger. (#5457)

Co-authored-by: 李铭昕 <715557344@qq.com>
This commit is contained in:
mingwei zheng 2023-02-24 09:50:27 +08:00 committed by GitHub
parent 9b61fb7ec4
commit 7ed6861532
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 9 deletions

View File

@ -45,16 +45,12 @@ declare(strict_types=1);
namespace App\Service;
use Psr\Container\ContainerInterface;
use Psr\Log\LoggerInterface;
use Hyperf\Logger\LoggerFactory;
class DemoService
{
/**
* @var \Psr\Log\LoggerInterface
*/
protected $logger;
protected LoggerInterface $logger;
public function __construct(LoggerFactory $loggerFactory)
{

View File

@ -45,7 +45,7 @@ declare(strict_types=1);
namespace App\Service;
use Psr\Container\ContainerInterface;
use Psr\Log\LoggerInterface;
use Hyperf\Logger\LoggerFactory;
class DemoService

View File

@ -45,7 +45,7 @@ declare(strict_types=1);
namespace App\Service;
use Psr\Container\ContainerInterface;
use Psr\Log\LoggerInterface;
use Hyperf\Logger\LoggerFactory;
class DemoService

View File

@ -45,7 +45,7 @@ declare(strict_types=1);
namespace App\Service;
use Psr\Container\ContainerInterface;
use Psr\Log\LoggerInterface;
use Hyperf\Logger\LoggerFactory;
class DemoService