34 lines
686 B
PHP
34 lines
686 B
PHP
<?php
|
|
/**
|
|
* This service file is part of item.
|
|
*
|
|
* @author ctexthuang
|
|
* @contact ctexthuang@qq.com
|
|
* @web_site https://ctexthuang.com
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Service\Test\Proxy\Subject;
|
|
|
|
use App\Interface\Test\Decorator\LoggerInterface;
|
|
use App\Interface\Test\Proxy\SubjectInterface;
|
|
use Hyperf\Di\Annotation\Inject;
|
|
|
|
class RealSubjectService implements SubjectInterface
|
|
{
|
|
/**
|
|
* @var LoggerInterface
|
|
*/
|
|
#[Inject]
|
|
protected LoggerInterface $logger;
|
|
|
|
/**
|
|
* @return void
|
|
*/
|
|
public function request(): void
|
|
{
|
|
$res = 'RealSubjectService: Handling request...'.PHP_EOL;
|
|
$this->logger->log($res);
|
|
}
|
|
} |