改名
This commit is contained in:
@@ -4,6 +4,8 @@ declare(strict_types=1);
|
||||
namespace HttpServer\Events;
|
||||
|
||||
|
||||
use Annotation\Aspect;
|
||||
use Database\InjectProperty;
|
||||
use Exception;
|
||||
use HttpServer\Abstracts\Callback;
|
||||
use HttpServer\Exception\ExitException;
|
||||
@@ -36,7 +38,7 @@ class OnRequest extends Callback
|
||||
/**
|
||||
* @throws Exception
|
||||
*/
|
||||
public function init()
|
||||
#[Aspect(InjectProperty::class)] public function init()
|
||||
{
|
||||
$this->event = Snowflake::app()->getEvent();
|
||||
$this->logger = Snowflake::app()->getLogger();
|
||||
|
||||
@@ -3,7 +3,9 @@ declare(strict_types=1);
|
||||
|
||||
namespace HttpServer\Route;
|
||||
|
||||
use Annotation\Aspect;
|
||||
use Closure;
|
||||
use Database\InjectProperty;
|
||||
use Exception;
|
||||
use HttpServer\Abstracts\HttpService;
|
||||
use HttpServer\Http\Request;
|
||||
@@ -57,7 +59,7 @@ class Router extends HttpService implements RouterInterface
|
||||
* @throws ConfigException
|
||||
* 初始化函数路径
|
||||
*/
|
||||
public function init()
|
||||
#[Aspect(InjectProperty::class)] public function init()
|
||||
{
|
||||
$this->dir = Config::get('http.namespace', false, $this->dir);
|
||||
}
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
namespace HttpServer;
|
||||
|
||||
|
||||
use Annotation\Aspect;
|
||||
use Database\InjectProperty;
|
||||
use Exception;
|
||||
use Snowflake\Abstracts\Component;
|
||||
use Snowflake\Abstracts\Config;
|
||||
@@ -30,7 +32,7 @@ class Shutdown extends Component
|
||||
/**
|
||||
* @throws Exception
|
||||
*/
|
||||
public function init()
|
||||
#[Aspect(InjectProperty::class)] public function init()
|
||||
{
|
||||
$this->taskDirectory = storage(null, 'pid/task');
|
||||
$this->workerDirectory = storage(null, 'pid/worker');
|
||||
|
||||
Reference in New Issue
Block a user