mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-04 23:35:35 +08:00
31 lines
533 B
PHP
31 lines
533 B
PHP
<?php
|
|
|
|
|
|
namespace ZM\Annotation\Http;
|
|
|
|
|
|
use Doctrine\Common\Annotations\Annotation\Required;
|
|
use Doctrine\Common\Annotations\Annotation\Target;
|
|
use ZM\Annotation\AnnotationBase;
|
|
use ZM\Annotation\Interfaces\ErgodicAnnotation;
|
|
|
|
/**
|
|
* Class Middleware
|
|
* @package ZM\Annotation\Http
|
|
* @Annotation
|
|
* @Target("ALL")
|
|
*/
|
|
class Middleware extends AnnotationBase implements ErgodicAnnotation
|
|
{
|
|
/**
|
|
* @var string
|
|
* @Required()
|
|
*/
|
|
public $middleware;
|
|
|
|
/**
|
|
* @var string[]
|
|
*/
|
|
public $params = [];
|
|
}
|