- Replace Doctrine annotations with PHP 8.1 attributes - Update annotation classes to use Attribute interface - Modify attribute usage across multiple controller files - Update composer.json to use doctrine/annotations ^2.0.0
21 lines
405 B
PHP
21 lines
405 B
PHP
<?php
|
|
|
|
namespace app\admin\service\annotation;
|
|
|
|
use Attribute;
|
|
|
|
/**
|
|
* controller 节点注解类
|
|
*/
|
|
#[Attribute]
|
|
final class ControllerAnnotation
|
|
{
|
|
/**
|
|
* @param string $title
|
|
* @param bool $auth 是否需要权限
|
|
* @param string|array $ignore
|
|
*/
|
|
public function __construct(public string $title = '', public bool $auth = true, public string|array $ignore = '')
|
|
{
|
|
}
|
|
} |