From c54f49ed19d0f435558b74592103e01c6b85f1a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 23 Feb 2021 15:48:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Annotation/Annotation.php | 5 +++++ Database/DatabasesProviders.php | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Annotation/Annotation.php b/Annotation/Annotation.php index b7b6e584..d0ae8ffd 100644 --- a/Annotation/Annotation.php +++ b/Annotation/Annotation.php @@ -167,6 +167,11 @@ class Annotation extends Component } $annotation = $annotation->execute([$object, $value->getName()]); $this->_prepertyes[get_class($object)][$value->getName()] = $annotation; + + if (str_contains(env('workerId'), 'Task')) { + var_dump(get_class($object) . '::' . $value->getName()); + } + if ($value->isPublic()) { $object->{$value->getName()} = $annotation; } else { diff --git a/Database/DatabasesProviders.php b/Database/DatabasesProviders.php index 57b2474c..fad0ccb7 100644 --- a/Database/DatabasesProviders.php +++ b/Database/DatabasesProviders.php @@ -50,10 +50,6 @@ class DatabasesProviders extends Providers */ public function scanModel() { - var_dump(env('workerId')); - if (str_contains(env('workerId'), 'Task')) { - var_dump(get_called_class()); - } $attributes = Snowflake::app()->getAttributes(); $attributes->read(MODEL_PATH, 'App\Models', 'models'); }