This commit is contained in:
2020-12-16 10:38:03 +08:00
parent ff067cebd8
commit 9a4daaba16
4 changed files with 93 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
<?php
namespace Annotation\Route;
/**
* Class Middleware
* @package Annotation\Route
*/
#[\Attribute(\Attribute::TARGET_METHOD)] class Middleware
{
/**
* Interceptor constructor.
* @param string|array $middleware
*/
public function __construct(public string|array $middleware)
{
}
}