Skip to content

Commit

Permalink
自定义命令行
Browse files Browse the repository at this point in the history
  • Loading branch information
AxiosLeo committed Aug 7, 2018
1 parent 45b7a1a commit 35253bd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/command.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php
/**
* @author: axios
*
* @email: [email protected]
* @blog: http://hanxv.cn
* @datetime: 2018/5/15 20:09
*/

return [
'tpr\command\Index',
];
13 changes: 10 additions & 3 deletions think
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
#!/usr/bin/env php
<?php

define('PROJECT_NAME', 'command');

define('PROJECT_NAME','command');
define('BASE_NAMESPACE', 'tpr');

require_once __DIR__ . '/init.php';
define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
define('APP_PATH', ROOT_PATH . PROJECT_NAME . DIRECTORY_SEPARATOR);
define('CONF_PATH', ROOT_PATH . 'config' . DIRECTORY_SEPARATOR);
define('RUNTIME_PATH', ROOT_PATH . 'runtime' . DIRECTORY_SEPARATOR . PROJECT_NAME . DIRECTORY_SEPARATOR);
define('APP_NAMESPACE', BASE_NAMESPACE . '\\' . PROJECT_NAME);
define('TPR_PATH', ROOT_PATH . 'vendor' . DIRECTORY_SEPARATOR . 'axios' . DIRECTORY_SEPARATOR . 'tpr-framework' . DIRECTORY_SEPARATOR);
define('DS', DIRECTORY_SEPARATOR);

// 加载框架引导文件
require THINK_PATH.'console.php';
require TPR_PATH . 'console.php';

0 comments on commit 35253bd

Please sign in to comment.