diff --git a/Annotation/Kafka.php b/Annotation/Kafka.php index 37668e50..355b0b59 100644 --- a/Annotation/Kafka.php +++ b/Annotation/Kafka.php @@ -23,7 +23,6 @@ use Snowflake\Snowflake; */ public function __construct(public string $topic) { - var_dump($this->topic); } diff --git a/function.php b/function.php index 01ec4442..4012c1da 100644 --- a/function.php +++ b/function.php @@ -122,6 +122,9 @@ if (!function_exists('injectRuntime')) { $di = Snowflake::getDi(); foreach ($fileLists as $class) { $instance = $di->get($class); + foreach ($di->getTargetNote($class) as $value) { + $value->execute($instance); + } $methods = $di->getMethodAttribute($class); foreach ($methods as $method => $attribute) { if (empty($attribute)) {