改名
This commit is contained in:
@@ -5,15 +5,14 @@ namespace Annotation\Route;
|
|||||||
|
|
||||||
|
|
||||||
use Annotation\Attribute;
|
use Annotation\Attribute;
|
||||||
use Http\Route\MiddlewareManager;
|
|
||||||
use ReflectionException;
|
|
||||||
use Http\IInterface\MiddlewareInterface;
|
use Http\IInterface\MiddlewareInterface;
|
||||||
|
use Http\Route\MiddlewareManager;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class Middleware
|
* Class Middleware
|
||||||
* @package Annotation\Route
|
* @package Annotation\Route
|
||||||
*/
|
*/
|
||||||
#[\Attribute(\Attribute::TARGET_METHOD)] class Middleware extends Attribute
|
#[\Attribute(\Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE)] class Middleware extends Attribute
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -5,11 +5,10 @@ namespace Annotation\Route;
|
|||||||
|
|
||||||
|
|
||||||
use Annotation\Attribute;
|
use Annotation\Attribute;
|
||||||
use Exception;
|
|
||||||
use Http\Route\Router;
|
use Http\Route\Router;
|
||||||
use Kiri\Kiri;
|
use Kiri\Kiri;
|
||||||
|
|
||||||
#[\Attribute(\Attribute::TARGET_METHOD)] class Route extends Attribute
|
#[\Attribute(\Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE)] class Route extends Attribute
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -18,7 +17,7 @@ use Kiri\Kiri;
|
|||||||
* @param string $method
|
* @param string $method
|
||||||
* @param string $version
|
* @param string $version
|
||||||
*/
|
*/
|
||||||
public function __construct(public string $uri,public string $method,public string $version = 'v.1.0')
|
public function __construct(public string $uri, public string $method, public string $version = 'v.1.0')
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user