add plugin loader support

This commit is contained in:
crazywhalecc
2022-12-19 01:45:27 +08:00
parent 52a195aca2
commit cd2bb1b570
18 changed files with 373 additions and 96 deletions

View File

@@ -6,11 +6,9 @@ namespace ZM\Annotation;
abstract class AnnotationBase implements \IteratorAggregate
{
public string $method = '';
/** @var array|\Closure|string 方法名或闭包 */
public \Closure|string|array $method = '';
/**
* @var \Closure|string
*/
public $class = '';
public array $group = [];