修改登陆事件

This commit is contained in:
JaguarJack
2020-04-28 16:34:17 +08:00
parent 760ad2a51b
commit 435e1b6399
17 changed files with 954 additions and 37 deletions

View File

@@ -0,0 +1,42 @@
<?php
namespace JaguarJack\Generator\Template;
trait Content
{
public function header()
{
$year = date('Y', time());
return <<<TMP
<?php
// +----------------------------------------------------------------------
// | CatchAdmin [Just Like ]
// +----------------------------------------------------------------------
// | Copyright (c) 2017~{$year} http://catchadmin.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt )
// +----------------------------------------------------------------------
// | Author: JaguarJack [ njphper@gmail.com ]
// +----------------------------------------------------------------------
TMP;
}
/**
* set namespace
*
* @time 2020年04月27日
* @param $namespace
* @return string
*/
public function nameSpace($namespace)
{
return <<<TMP
namespace {$namespace};
TMP;
}
}