diff --git a/library/think/create.php b/library/think/build.php similarity index 98% rename from library/think/create.php rename to library/think/build.php index bc9e2c8d..0cde3d20 100644 --- a/library/think/create.php +++ b/library/think/build.php @@ -8,15 +8,14 @@ // +---------------------------------------------------------------------- // | Author: liu21st // +---------------------------------------------------------------------- - 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)) { return; } else { diff --git a/mode/common.php b/mode/common.php index 26075e41..5fe4b218 100644 --- a/mode/common.php +++ b/mode/common.php @@ -20,11 +20,11 @@ return [ // 别名定义 'alias' => [ 'think\App' => CORE_PATH . 'app' . EXT, + 'think\Build' => CORE_PATH . 'build' . EXT, 'think\Cache' => CORE_PATH . 'cache' . EXT, 'think\Config' => CORE_PATH . 'config' . EXT, 'think\Controller' => CORE_PATH . 'controller' . EXT, 'think\Cookie' => CORE_PATH . 'cookie' . EXT, - 'think\Create' => CORE_PATH . 'create' . EXT, 'think\Db' => CORE_PATH . 'db' . EXT, 'think\Debug' => CORE_PATH . 'debug' . EXT, 'think\Error' => CORE_PATH . 'error' . EXT, diff --git a/start.php b/start.php index 8aa7a11a..765aa00e 100644 --- a/start.php +++ b/start.php @@ -44,7 +44,7 @@ if (APP_HOOK && isset($mode['tags'])) { // 自动生成 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); // 执行应用