From 9812888e09c2c33944aa53805a3058656a3b1b87 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Mon, 3 May 2021 04:05:36 +0800 Subject: [PATCH] modify --- Annotation/Loader.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Annotation/Loader.php b/Annotation/Loader.php index 16605735..dc238a76 100644 --- a/Annotation/Loader.php +++ b/Annotation/Loader.php @@ -349,7 +349,10 @@ class Loader extends BaseObject continue; } - var_export($annotations['handler']); + if (env('worker') == 0) { + var_dump($annotations['handler']); + } + $class = $this->newInstance($annotations['handler']); /** @var \Annotation\Attribute $value */ foreach ($annotations['target'] ?? [] as $value) {