- 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
16 lines
325 B
PHP
16 lines
325 B
PHP
<?php
|
|
|
|
namespace app\admin\service\annotation;
|
|
|
|
use Attribute;
|
|
|
|
#[Attribute(Attribute::IS_REPEATABLE | Attribute::TARGET_METHOD)]
|
|
final class MiddlewareAnnotation
|
|
{
|
|
/** 过滤日志 */
|
|
const IGNORE_LOG = 'LOG';
|
|
|
|
public function __construct(public string $type = '', public string|array $ignore = '')
|
|
{
|
|
}
|
|
} |