改名
This commit is contained in:
@@ -34,13 +34,13 @@ defined('ASPECT_ERROR') or define('ASPECT_ERROR', 'Aspect annotation must implem
|
||||
public function execute(mixed $class, mixed $method = ''): bool
|
||||
{
|
||||
// TODO: Change the autogenerated stub
|
||||
if (!in_array(IAspect::class, class_implements($this->aspect))) {
|
||||
throw new Exception(ASPECT_ERROR . IAspect::class);
|
||||
}
|
||||
/** @var Aop $aop */
|
||||
$aop = Snowflake::getDi()->get(Aop::class);
|
||||
|
||||
$aop->aop_add([$class, $method], $this->aspect);
|
||||
// if (!in_array(IAspect::class, class_implements($this->aspect))) {
|
||||
// throw new Exception(ASPECT_ERROR . IAspect::class);
|
||||
// }
|
||||
// /** @var Aop $aop */
|
||||
// $aop = Snowflake::getDi()->get(Aop::class);
|
||||
//
|
||||
// $aop->aop_add([$class, $method], $this->aspect);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user