Files
swiftadmin/app/ApiController.php

33 lines
980 B
PHP
Raw Normal View History

2022-08-19 19:48:37 +08:00
<?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();
}
}