From 9a57600faf02f6c0a317325ecba141cc7f130be9 Mon Sep 17 00:00:00 2001 From: fucongcong Date: Wed, 8 Nov 2017 09:20:54 +0800 Subject: [PATCH] update md --- README.md | 42 ++++++++----------- SUMMARY.md | 10 ++--- doc/fu-wu-zhong-xin.md | 0 doc/ji-chu-fu-wu.md | 0 doc/kong-zhi-tai/kong-zhi-tai.md | 42 +++++++++++++++++++ {tong-bu-fu-wu => doc/tong-bu-fu-wu}/dao.md | 0 .../filecachewen-jian-huan-cun-lei.md | 0 .../tong-bu-fu-wu}/logri-zhi-lei.md | 0 .../tong-bu-fu-wu}/rediscache.md | 0 .../tong-bu-fu-wu}/service.md | 0 doc/yin-yan/huan-jing-yi-lai.md | 12 +++--- doc/yin-yan/qi-dong-xiang-mu.md | 14 +++---- tong-bu-fu-wu.md | 0 13 files changed, 78 insertions(+), 42 deletions(-) delete mode 100644 doc/fu-wu-zhong-xin.md delete mode 100644 doc/ji-chu-fu-wu.md create mode 100644 doc/kong-zhi-tai/kong-zhi-tai.md rename {tong-bu-fu-wu => doc/tong-bu-fu-wu}/dao.md (100%) rename {tong-bu-fu-wu => doc/tong-bu-fu-wu}/filecachewen-jian-huan-cun-lei.md (100%) rename {tong-bu-fu-wu => doc/tong-bu-fu-wu}/logri-zhi-lei.md (100%) rename {tong-bu-fu-wu => doc/tong-bu-fu-wu}/rediscache.md (100%) rename {tong-bu-fu-wu => doc/tong-bu-fu-wu}/service.md (100%) delete mode 100644 tong-bu-fu-wu.md diff --git a/README.md b/README.md index e4dc379..e4db10f 100644 --- a/README.md +++ b/README.md @@ -49,31 +49,25 @@ * [注册中心](doc/fu-wu-zhong-xin/zhu-ce-zhong-xin.md) * [服务调用](doc/fu-wu-zhong-xin/yi-bu-http-server-zhong-shi-yong-fu-wu.md) * [服务调用监控](doc/fu-wu-zhong-xin/fu-wu-diao-yong-jian-kong.md) -* 基础服务\(待更新\) - - * Config - * StaticCache - - * Route - - * Controller - * View - - * Request - - * Response - * Event - * Listener - * Subscriber - * EventDispatcher - +* 基础服务 + * [Config配置类](doc/ji-chu-fu-wu/config.md) + * [StaticCache静态缓存类](doc/ji-chu-fu-wu/staticcache.md) + * [Route路由类](doc/ji-chu-fu-wu/routelu-you-lei.md) + * [Controller控制器类](doc/ji-chu-fu-wu/controllerkong-zhi-qi-lei.md) + * [View视图类](doc/ji-chu-fu-wu/viewshi-tu-lei.md) + * [Request请求类](doc/ji-chu-fu-wu/requestqing-qiu-lei.md) + * [Response响应类](doc/ji-chu-fu-wu/responsexiang-ying-lei.md) + * [Event事件类](doc/ji-chu-fu-wu/eventshi-jian-lei.md) + * [Listener监听类](doc/ji-chu-fu-wu/listenerjian-ting-lei.md) + * [Subscriber多事件监听](doc/ji-chu-fu-wu/subscriberduo-shi-jian-jian-ting.md) + * [EventDispatcher事件调度](doc/ji-chu-fu-wu/eventdispatchershi-jian-diao-du-lei.md) * 同步服务\(用于服务开发\) - * FileCache - * RedisCache - * Log - * Dao - * Service -* 控制台 + * [Service](doc/tong-bu-fu-wu/service.md) + * [Dao](doc/tong-bu-fu-wu/dao.md) + * [Cache](doc/tong-bu-fu-wu/rediscache.md) + * [Log日志类](doc/tong-bu-fu-wu/logri-zhi-lei.md) + * [FileCache文件缓存类](doc/tong-bu-fu-wu/filecachewen-jian-huan-cun-lei.md) +* [控制台](doc/kong-zhi-tai/kong-zhi-tai.md) ### 环境依赖 diff --git a/SUMMARY.md b/SUMMARY.md index 4ecf099..232d528 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -30,10 +30,10 @@ * [Subscriber多事件监听](doc/ji-chu-fu-wu/subscriberduo-shi-jian-jian-ting.md) * [EventDispatcher事件调度](doc/ji-chu-fu-wu/eventdispatchershi-jian-diao-du-lei.md) * [同步服务\(Service开发\)](tong-bu-fu-wu.md) - * [Service](tong-bu-fu-wu/service.md) - * [Dao](tong-bu-fu-wu/dao.md) - * [Cache](tong-bu-fu-wu/rediscache.md) - * [Log日志类](tong-bu-fu-wu/logri-zhi-lei.md) - * [FileCache文件缓存类](tong-bu-fu-wu/filecachewen-jian-huan-cun-lei.md) + * [Service](doc/tong-bu-fu-wu/service.md) + * [Dao](doc/tong-bu-fu-wu/dao.md) + * [Cache](doc/tong-bu-fu-wu/rediscache.md) + * [Log日志类](doc/tong-bu-fu-wu/logri-zhi-lei.md) + * [FileCache文件缓存类](doc/tong-bu-fu-wu/filecachewen-jian-huan-cun-lei.md) * [控制台](kong-zhi-tai.md) diff --git a/doc/fu-wu-zhong-xin.md b/doc/fu-wu-zhong-xin.md deleted file mode 100644 index e69de29..0000000 diff --git a/doc/ji-chu-fu-wu.md b/doc/ji-chu-fu-wu.md deleted file mode 100644 index e69de29..0000000 diff --git a/doc/kong-zhi-tai/kong-zhi-tai.md b/doc/kong-zhi-tai/kong-zhi-tai.md new file mode 100644 index 0000000..a365115 --- /dev/null +++ b/doc/kong-zhi-tai/kong-zhi-tai.md @@ -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' => '清除日志', //提示 + ], +], +``` + + + diff --git a/tong-bu-fu-wu/dao.md b/doc/tong-bu-fu-wu/dao.md similarity index 100% rename from tong-bu-fu-wu/dao.md rename to doc/tong-bu-fu-wu/dao.md diff --git a/tong-bu-fu-wu/filecachewen-jian-huan-cun-lei.md b/doc/tong-bu-fu-wu/filecachewen-jian-huan-cun-lei.md similarity index 100% rename from tong-bu-fu-wu/filecachewen-jian-huan-cun-lei.md rename to doc/tong-bu-fu-wu/filecachewen-jian-huan-cun-lei.md diff --git a/tong-bu-fu-wu/logri-zhi-lei.md b/doc/tong-bu-fu-wu/logri-zhi-lei.md similarity index 100% rename from tong-bu-fu-wu/logri-zhi-lei.md rename to doc/tong-bu-fu-wu/logri-zhi-lei.md diff --git a/tong-bu-fu-wu/rediscache.md b/doc/tong-bu-fu-wu/rediscache.md similarity index 100% rename from tong-bu-fu-wu/rediscache.md rename to doc/tong-bu-fu-wu/rediscache.md diff --git a/tong-bu-fu-wu/service.md b/doc/tong-bu-fu-wu/service.md similarity index 100% rename from tong-bu-fu-wu/service.md rename to doc/tong-bu-fu-wu/service.md diff --git a/doc/yin-yan/huan-jing-yi-lai.md b/doc/yin-yan/huan-jing-yi-lai.md index a794b62..739d596 100644 --- a/doc/yin-yan/huan-jing-yi-lai.md +++ b/doc/yin-yan/huan-jing-yi-lai.md @@ -1,12 +1,12 @@ ### 环境依赖 -* #### [**hiredis**](https://github.com/redis/hiredis)**(redis异步库)** -* #### **redis** -* #### **mysql** -* #### **php >5.6 或者 php > 7.0** -* #### swoole >=1.9.23\(建议升级到最新版本\) \(在编译swoole时加入--enable-async-redis,开启异步redis客户端, --enable-openssl开启openssl支持,--with-openssl-dir指定你的openssl目录\) +* [**hiredis**](https://github.com/redis/hiredis)**(redis异步库)** +* **redis** +* **mysql** +* **php >5.6 或者 php > 7.0** +* swoole >=1.9.23\(建议升级到最新版本\) \(在编译swoole时加入--enable-async-redis,开启异步redis客户端, --enable-openssl开启openssl支持,--with-openssl-dir指定你的openssl目录\) -> ##### 注:openssl是用于http异步客户端抓取https网址时依赖的模块,可以选择性开启 +> 注:openssl是用于http异步客户端抓取https网址时依赖的模块,可以选择性开启 diff --git a/doc/yin-yan/qi-dong-xiang-mu.md b/doc/yin-yan/qi-dong-xiang-mu.md index 04e3ecf..8d67e56 100644 --- a/doc/yin-yan/qi-dong-xiang-mu.md +++ b/doc/yin-yan/qi-dong-xiang-mu.md @@ -1,12 +1,12 @@ ### 启动项目\(请先完成环境依赖安装\) -1. #### 克隆项目 -2. #### 执行 => composer install -3. #### 新建一个runtime目录,用于存放日志等cache文件 -4. #### 配置config中的database配置文件 -5. #### 设置config/service.php中的registry\_address.目前只支持redis、mysql作为注册中心 -6. #### 启动http server => php server.php -7. #### 访问 [http://localhost:9777/](http://localhost:9777/) 开始异步协程之旅 +1. 克隆项目 +2. 执行 => composer install +3. 新建一个runtime目录,用于存放日志等cache文件 +4. 配置config中的database配置文件 +5. 设置config/service.php中的registry\_address.目前只支持redis、mysql作为注册中心 +6. 启动http server => php server.php +7. 访问 [http://localhost:9777/](http://localhost:9777/) 开始异步协程之旅 diff --git a/tong-bu-fu-wu.md b/tong-bu-fu-wu.md deleted file mode 100644 index e69de29..0000000