middleware enhancement for passing arguments

This commit is contained in:
crazywhalecc
2023-03-05 11:44:36 +08:00
committed by Jerry
parent 5d63859a17
commit 2d53d7a1d9
6 changed files with 35 additions and 6 deletions

View File

@@ -21,14 +21,14 @@ use ZM\Annotation\Interfaces\ErgodicAnnotation;
class Middleware extends AnnotationBase implements ErgodicAnnotation
{
/**
* @param string[] $params
* @param string[] $args
*/
public function __construct(
/**
* @Required()
*/
public $name,
public array $params = []
public array $args = []
) {
}
}