This commit is contained in:
as2252258@163.com
2021-07-27 04:22:53 +08:00
parent c22eba6217
commit d9a279ba2b
+5 -2
View File
@@ -58,10 +58,13 @@ class Snowflake
$attributes = static::getDi()->getClassProperty($class::class);
/**
* @var string $property
* @var \Annotation\Attribute $attribute
* @var \ReflectionProperty $attribute
*/
foreach ($attributes as $property => $attribute) {
$attribute->execute($class, $property);
foreach ($attribute->getAttributes() as $item) {
$item->newInstance()->execute($class, $property);
}
}
}