- 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
22 lines
552 B
PHP
22 lines
552 B
PHP
<?php
|
|
|
|
namespace app\admin\controller\system;
|
|
|
|
use app\admin\model\SystemUploadfile;
|
|
use app\common\controller\AdminController;
|
|
use app\admin\service\annotation\ControllerAnnotation;
|
|
use app\admin\service\annotation\NodeAnnotation;
|
|
use think\App;
|
|
|
|
#[ControllerAnnotation(title: '上传文件管理')]
|
|
class Uploadfile extends AdminController
|
|
{
|
|
|
|
public function __construct(App $app)
|
|
{
|
|
parent::__construct($app);
|
|
$this->model = new SystemUploadfile();
|
|
$this->assign('upload_types', config('admin.upload_types'));
|
|
}
|
|
|
|
} |