优化 auth 单例获取用户,防止多次查询
This commit is contained in:
13
catch/cms/controller/Test.php
Normal file
13
catch/cms/controller/Test.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
namespace catchAdmin\cms\controller;
|
||||
|
||||
use catcher\base\CatchController;
|
||||
use catcher\CatchResponse;
|
||||
|
||||
class TestController extends CatchController
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
return CatchResponse::success('Hello CatchAdmin');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user