mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 15:02:47 +08:00
Create类更名为Build
This commit is contained in:
@@ -8,15 +8,14 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace think;
|
namespace think;
|
||||||
|
|
||||||
class Create
|
class Build
|
||||||
{
|
{
|
||||||
public static function build($build)
|
public static function run($build)
|
||||||
{
|
{
|
||||||
// 锁定
|
// 锁定
|
||||||
$lockfile = APP_PATH . 'create.lock';
|
$lockfile = APP_PATH . 'build.lock';
|
||||||
if (is_writable($lockfile)) {
|
if (is_writable($lockfile)) {
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
@@ -20,11 +20,11 @@ return [
|
|||||||
// 别名定义
|
// 别名定义
|
||||||
'alias' => [
|
'alias' => [
|
||||||
'think\App' => CORE_PATH . 'app' . EXT,
|
'think\App' => CORE_PATH . 'app' . EXT,
|
||||||
|
'think\Build' => CORE_PATH . 'build' . EXT,
|
||||||
'think\Cache' => CORE_PATH . 'cache' . EXT,
|
'think\Cache' => CORE_PATH . 'cache' . EXT,
|
||||||
'think\Config' => CORE_PATH . 'config' . EXT,
|
'think\Config' => CORE_PATH . 'config' . EXT,
|
||||||
'think\Controller' => CORE_PATH . 'controller' . EXT,
|
'think\Controller' => CORE_PATH . 'controller' . EXT,
|
||||||
'think\Cookie' => CORE_PATH . 'cookie' . EXT,
|
'think\Cookie' => CORE_PATH . 'cookie' . EXT,
|
||||||
'think\Create' => CORE_PATH . 'create' . EXT,
|
|
||||||
'think\Db' => CORE_PATH . 'db' . EXT,
|
'think\Db' => CORE_PATH . 'db' . EXT,
|
||||||
'think\Debug' => CORE_PATH . 'debug' . EXT,
|
'think\Debug' => CORE_PATH . 'debug' . EXT,
|
||||||
'think\Error' => CORE_PATH . 'error' . EXT,
|
'think\Error' => CORE_PATH . 'error' . EXT,
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ if (APP_HOOK && isset($mode['tags'])) {
|
|||||||
|
|
||||||
// 自动生成
|
// 自动生成
|
||||||
if (APP_AUTO_BUILD && is_file(APP_PATH . 'build.php')) {
|
if (APP_AUTO_BUILD && is_file(APP_PATH . 'build.php')) {
|
||||||
Create::build(include APP_PATH . 'build.php');
|
Build::run(include APP_PATH . 'build.php');
|
||||||
}
|
}
|
||||||
Loader::addNamespace('tests', TEST_PATH);
|
Loader::addNamespace('tests', TEST_PATH);
|
||||||
// 执行应用
|
// 执行应用
|
||||||
|
|||||||
Reference in New Issue
Block a user