56 lines
1.4 KiB
PHP
56 lines
1.4 KiB
PHP
<?php
|
|
declare (strict_types = 1);
|
|
// +----------------------------------------------------------------------
|
|
// | swiftAdmin 极速开发框架 [基于 WebMan 开发]
|
|
// +----------------------------------------------------------------------
|
|
// | Copyright (c) 2020-2099 http://www.swiftadmin.net
|
|
// +----------------------------------------------------------------------
|
|
// | swiftAdmin.net High Speed Development Framework
|
|
// +----------------------------------------------------------------------
|
|
// | Author: meystack <coolsec@foxmail.com> Apache2
|
|
// +----------------------------------------------------------------------
|
|
|
|
namespace app\index\controller;
|
|
|
|
use app\HomeController;
|
|
use support\Response;
|
|
|
|
/**
|
|
* 首页控制器
|
|
* <!--Easyflow-->
|
|
* Class Index
|
|
* @package app\index\controller
|
|
*/
|
|
class Easyflow extends HomeController
|
|
{
|
|
|
|
/**
|
|
* 鉴权控制器
|
|
*/
|
|
public bool $needLogin = false;
|
|
|
|
|
|
/**
|
|
* 非鉴权方法
|
|
* @var array
|
|
*/
|
|
public $noNeedAuth = ['index', 'home'];
|
|
|
|
// 初始化函数
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
}
|
|
|
|
/**
|
|
* Easyflow 首页
|
|
* @return Response
|
|
* @throws InvalidArgumentException
|
|
*/
|
|
public function index(): Response
|
|
{
|
|
return response('Easyflow 前台首页模板');
|
|
}
|
|
|
|
}
|