改名
This commit is contained in:
@@ -185,7 +185,12 @@ class Loader extends BaseObject
|
||||
if (!class_exists($attribute->getName())) {
|
||||
continue;
|
||||
}
|
||||
$_property[] = $attribute->newInstance();
|
||||
$property = $attribute->newInstance();
|
||||
if ($property instanceof Inject) {
|
||||
$property->execute([$_array['handler'], $method->getName()]);
|
||||
} else {
|
||||
$_property[] = $attribute->newInstance();
|
||||
}
|
||||
}
|
||||
$_array['property'][$method->getName()] = $_property;
|
||||
}
|
||||
|
||||
@@ -56,9 +56,6 @@ use Snowflake\Snowflake;
|
||||
$rpc = Snowflake::app()->getRpc();
|
||||
$rpc->addProducer($this->cmd, $handler, $this->config);
|
||||
|
||||
$attributes = Snowflake::app()->getAttributes();
|
||||
$attributes->injectProperty($handler[0]);
|
||||
|
||||
return parent::execute($handler);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user