This commit is contained in:
2021-03-30 12:07:52 +08:00
parent a3ebf29afa
commit 883caf0b95
+1 -1
View File
@@ -60,7 +60,7 @@ class Aop extends Component
}
var_dump($this->_aop[$aopName]);
$reflect = Snowflake::getDi()->getReflect($this->_aop[$aopName]);
$reflect = Snowflake::getDi()->getReflect(current($this->_aop[$aopName]));
if (!$reflect->isInstantiable() || !$reflect->hasMethod('invoke')) {
throw new Exception(ASPECT_ERROR . IAspect::class);
}