This commit is contained in:
2021-03-29 17:00:53 +08:00
parent 459d48686a
commit e9f82e59cc
9 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ class OnRequest extends Callback
/**
* @throws Exception
*/
#[Aspect(InjectProperty::class)] public function init()
public function init()
{
$this->event = Snowflake::app()->getEvent();
$this->logger = Snowflake::app()->getLogger();
+1 -1
View File
@@ -59,7 +59,7 @@ class Router extends HttpService implements RouterInterface
* @throws ConfigException
* 初始化函数路径
*/
#[Aspect(InjectProperty::class)] public function init()
public function init()
{
$this->dir = Config::get('http.namespace', false, $this->dir);
}
+1 -1
View File
@@ -32,7 +32,7 @@ class Shutdown extends Component
/**
* @throws Exception
*/
#[Aspect(InjectProperty::class)] public function init()
public function init()
{
$this->taskDirectory = storage(null, 'pid/task');
$this->workerDirectory = storage(null, 'pid/worker');