This commit is contained in:
2021-02-23 15:48:50 +08:00
parent a453caf0f4
commit c54f49ed19
2 changed files with 5 additions and 4 deletions
+5
View File
@@ -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 {
-4
View File
@@ -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');
}