first commit
This commit is contained in:
32
app/ApiController.php
Normal file
32
app/ApiController.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
declare (strict_types=1);
|
||||
// +----------------------------------------------------------------------
|
||||
// | swiftAdmin 极速开发框架 [基于WebMan开发]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2020-2030 http://www.swiftadmin.net
|
||||
// +----------------------------------------------------------------------
|
||||
// | swiftAdmin.NET High Speed Development Framework
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: meystack <coolsec@foxmail.com> Apache 2.0 License
|
||||
// +----------------------------------------------------------------------
|
||||
namespace app;
|
||||
|
||||
use app\common\library\Auth;
|
||||
|
||||
/**
|
||||
* Api全局控制器基类
|
||||
* Class ApiController
|
||||
* @package app
|
||||
* @author meystack <
|
||||
*/
|
||||
class ApiController extends BaseController
|
||||
{
|
||||
/**
|
||||
* 初始化方法
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->auth = Auth::instance();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user