Create类更名为Build

This commit is contained in:
thinkphp
2015-12-22 15:55:52 +08:00
parent 4d53e9bc19
commit c37aba27d7
3 changed files with 5 additions and 6 deletions

View File

@@ -8,15 +8,14 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
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 {

View File

@@ -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,

View File

@@ -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);
// 执行应用