first commit
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\AnnoRoute\Attribute;
|
||||
|
||||
use Attribute;
|
||||
|
||||
#[Attribute(Attribute::TARGET_CLASS)]
|
||||
class RequestAttribute
|
||||
{
|
||||
/**
|
||||
* @param string $routePrefix 路由前缀
|
||||
* @param string $abilitiesPrefix 权限前缀
|
||||
* @param string | array $middleware 控制器中间件
|
||||
* @param string | null $authGuard 用户提供程序
|
||||
*/
|
||||
public function __construct(
|
||||
public string $routePrefix = '',
|
||||
public string $abilitiesPrefix = '',
|
||||
public string | array $middleware = '',
|
||||
public ?string $authGuard = null
|
||||
)
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user