-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates tong-bu-fu-wu/logri-zhi-lei.md
Auto commit by GitBook Editor
- Loading branch information
1 parent
feef331
commit b657f6a
Showing
9 changed files
with
91 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
### 控制台 | ||
|
||
#### 命令进入根目录执行 app/console | ||
|
||
``` | ||
- - - - - - - - - - - - - - - - - \ \ \ \ - - - - - - | ||
/ - - - - - / \ / / - - - / / - - - - - \ \ \ \ \ \ \- - - - - -\ | ||
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | ||
\ \ - - - \ \ \ \ \ \ \ \ \ \ \ \- - - - - / / | ||
\ \ / - - -/ \ \ \ \ \ \ \ \ \ \ \ \ - - - - - | ||
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | ||
\ \ - - - \ \ \ \ \ \ - - - - - / \ \ - - - - \ \ \ | ||
\ - -- - \ / \ \ \ - - - - -/ \ - - - - - / \ \ | ||
使用帮助: | ||
Usage: app/console [options] [args...] | ||
generate:service name 生成一个自定义service | ||
generate:controller name|groupname:name 生成一个自定义controller(默认存放在src/Web,如果想要指定分组 groupname:name) | ||
sql:generate 生成一个sql执行模板(存放于app/sql) | ||
sql:migrate 执行sql更新 | ||
sql:rollback version 执行sql回滚到指定版本 | ||
log.clear 清除日志 | ||
``` | ||
|
||
#### 自定义控制台 {#自定义控制台} | ||
|
||
##### 配置文件config/app.php {#配置文件configappphp} | ||
|
||
``` | ||
//扩展console命令行控制台 | ||
'console_commands' => [ | ||
'log:clear' => [ | ||
'command' => 'src\Web\Command\LogClearCommand', //执行的类 | ||
'help' => '清除日志', //提示 | ||
], | ||
], | ||
``` | ||
|
||
|
||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
### Dao | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
### FileCache | ||
|
||
### | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
### Log | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
### Cache | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
### Service服务 | ||
|
||
|
||
|