From 10a2c61bea2fc206f181e3b1bb0c75fd8829f62e Mon Sep 17 00:00:00 2001 From: Auto Doc Publisher Date: Fri, 21 Sep 2018 11:44:49 +0000 Subject: [PATCH] docs: auto generate by ci doc (objects.md): Fix number and code errors (#3029) 1) 'app....' should be 'this.app....'. 2) 4 levels instead of 5 for each logger instance. Ref: 1) https://github.com/eggjs/egg/pull/3019 2) https://github.com/eggjs/egg/pull/3018 --- api/Agent.html | 2 +- api/AgentWorkerLoader.html | 2 +- api/AppInfo.html | 18 ++-- api/AppWorkerLoader.html | 2 +- api/Application.html | 2 +- api/BaseContextLogger.html | 2 +- api/Config.html | 4 +- api/Context.html | 2 +- api/ContextLoader.html | 2 +- api/Egg.html | 2 +- api/EggApplication.html | 2 +- api/EggCore.html | 2 +- api/EggLoader.html | 18 ++-- api/FileLoader.html | 2 +- api/Helper.html | 2 +- api/I18n.html | 2 +- api/Lifecycle.html | 4 +- api/Messenger.html | 2 +- api/Request.html | 2 +- api/Response.html | 2 +- api/Router.html | 2 +- api/app_extend_context.js.html | 2 +- api/app_extend_helper.js.html | 2 +- api/app_extend_request.js.html | 2 +- api/app_extend_response.js.html | 2 +- api/config_config.default.js.html | 2 +- api/config_plugin.js.html | 2 +- api/global.html | 4 +- api/global.html#BaseContextClass | 2 +- api/global.html#Controller | 2 +- api/global.html#Service | 2 +- api/index.html | 2 +- api/index.js.html | 2 +- api/lib_agent.js.html | 2 +- api/lib_application.js.html | 2 +- api/lib_core_base_context_class.js.html | 2 +- api/lib_core_base_context_logger.js.html | 2 +- api/lib_core_context_httpclient.js.html | 2 +- api/lib_core_messenger.js.html | 2 +- api/lib_egg.js.html | 2 +- api/lib_jsdoc_context.jsdoc.html | 2 +- api/lib_jsdoc_request.jsdoc.html | 2 +- api/lib_jsdoc_response.jsdoc.html | 2 +- api/lib_loader_agent_worker_loader.js.html | 2 +- api/lib_loader_app_worker_loader.js.html | 2 +- ...opment@2.4.1@egg-development_agent.js.html | 2 +- ...-development_config_config.default.js.html | 2 +- ...dules__egg-i18n@2.0.0@egg-i18n_app.js.html | 2 +- ...@2.0.0@egg-i18n_app_extend_context.js.html | 2 +- ...0.0@egg-i18n_config_config.default.js.html | 2 +- ...0@egg-jsonp_app_extend_application.js.html | 2 +- ...2.0.0@egg-jsonp_app_extend_context.js.html | 2 +- ....0@egg-jsonp_config_config.default.js.html | 2 +- ...g-logrotator_config_config.default.js.html | 2 +- ...0@egg-multipart_app_extend_context.js.html | 2 +- ...gg-multipart_config_config.default.js.html | 2 +- ....4.0@egg-schedule_app_extend_agent.js.html | 2 +- ....0@egg-security_app_extend_context.js.html | 2 +- ...egg-security_config_config.default.js.html | 2 +- ...egg-session_app_extend_application.js.html | 2 +- ...1@egg-static_config_config.default.js.html | 2 +- ....0@egg-view_app_extend_application.js.html | 2 +- ...@2.1.0@egg-view_app_extend_context.js.html | 2 +- ...1.0@egg-view_config_config.default.js.html | 2 +- ...egg-watcher_config_config.default.js.html} | 6 +- api/node_modules_egg-core_lib_egg.js.html | 2 +- ...ode_modules_egg-core_lib_lifecycle.js.html | 15 ++- ...egg-core_lib_loader_context_loader.js.html | 2 +- ...les_egg-core_lib_loader_egg_loader.js.html | 7 +- ...es_egg-core_lib_loader_file_loader.js.html | 2 +- ...les_egg-core_lib_loader_mixin_boot.js.html | 98 ------------------- ...s_egg-core_lib_loader_mixin_config.js.html | 2 +- ...g-core_lib_loader_mixin_controller.js.html | 2 +- ...s_egg-core_lib_loader_mixin_custom.js.html | 65 +++++++++--- ...s_egg-core_lib_loader_mixin_extend.js.html | 2 +- ...g-core_lib_loader_mixin_middleware.js.html | 2 +- ...s_egg-core_lib_loader_mixin_plugin.js.html | 2 +- ...s_egg-core_lib_loader_mixin_router.js.html | 2 +- ..._egg-core_lib_loader_mixin_service.js.html | 2 +- ...-core_lib_utils_base_context_class.js.html | 2 +- ...e_modules_egg-core_lib_utils_index.js.html | 2 +- ..._modules_egg-core_lib_utils_router.js.html | 2 +- en/basics/objects.html | 4 +- en/plugins/watcher.html | 2 +- zh-cn/basics/objects.html | 4 +- zh-cn/plugins/watcher.html | 2 +- 86 files changed, 170 insertions(+), 225 deletions(-) rename api/{node_modules__egg-watcher@3.0.0@egg-watcher_config_config.default.js.html => node_modules__egg-watcher@3.1.0@egg-watcher_config_config.default.js.html} (99%) delete mode 100644 api/node_modules_egg-core_lib_loader_mixin_boot.js.html diff --git a/api/Agent.html b/api/Agent.html index f8234f2b7b..71ae5dc82a 100644 --- a/api/Agent.html +++ b/api/Agent.html @@ -1502,7 +1502,7 @@
Example

diff --git a/api/AgentWorkerLoader.html b/api/AgentWorkerLoader.html index aa85202d4d..1afbae2e32 100644 --- a/api/AgentWorkerLoader.html +++ b/api/AgentWorkerLoader.html @@ -263,7 +263,7 @@

loadConfig<
- Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/AppInfo.html b/api/AppInfo.html index 0e271be6cf..e8f255d472 100644 --- a/api/AppInfo.html +++ b/api/AppInfo.html @@ -116,7 +116,7 @@

new AppInfoSource:
@@ -200,7 +200,7 @@

baseDirSource:
@@ -291,7 +291,7 @@

envSource:
@@ -358,7 +358,7 @@

HOMESource:
@@ -418,7 +418,7 @@

nameSource:
@@ -478,7 +478,7 @@

pkgSource:
@@ -542,7 +542,7 @@

rootSource:
@@ -598,7 +598,7 @@

scopeSource:
@@ -634,7 +634,7 @@

scope
- Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/AppWorkerLoader.html b/api/AppWorkerLoader.html index 75317756dd..5702e25dd6 100644 --- a/api/AppWorkerLoader.html +++ b/api/AppWorkerLoader.html @@ -349,7 +349,7 @@

loadConfig<
- Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/Application.html b/api/Application.html index d303a8e208..39b35a45f7 100644 --- a/api/Application.html +++ b/api/Application.html @@ -2103,7 +2103,7 @@

Parameters:

- Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/BaseContextLogger.html b/api/BaseContextLogger.html index 3adf2c683f..80cef9078a 100644 --- a/api/BaseContextLogger.html +++ b/api/BaseContextLogger.html @@ -546,7 +546,7 @@

warn
- Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/Config.html b/api/Config.html index 5b029de583..88a2ad0ab6 100644 --- a/api/Config.html +++ b/api/Config.html @@ -5036,7 +5036,7 @@
Properties:
Source:
@@ -5072,7 +5072,7 @@
Properties:

- Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:34 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/Context.html b/api/Context.html index d8c4165f43..15d5add9b2 100644 --- a/api/Context.html +++ b/api/Context.html @@ -1925,7 +1925,7 @@
Parameters:

- Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:34 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/ContextLoader.html b/api/ContextLoader.html index 6eee4d9dce..3e67cae9c7 100644 --- a/api/ContextLoader.html +++ b/api/ContextLoader.html @@ -476,7 +476,7 @@

parse
- Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:34 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/Egg.html b/api/Egg.html index 1f9dca5e41..3bc03890d0 100644 --- a/api/Egg.html +++ b/api/Egg.html @@ -616,7 +616,7 @@

Subscript
- Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:34 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/EggApplication.html b/api/EggApplication.html index 38c6984dce..efb62e52a9 100644 --- a/api/EggApplication.html +++ b/api/EggApplication.html @@ -3518,7 +3518,7 @@

Parameters:

- Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:34 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/EggCore.html b/api/EggCore.html index 36e9b49ee1..12dc843f82 100644 --- a/api/EggCore.html +++ b/api/EggCore.html @@ -2314,7 +2314,7 @@
Parameters:

- Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:34 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/EggLoader.html b/api/EggLoader.html index 4976d5459d..ee3dd9ddaa 100644 --- a/api/EggLoader.html +++ b/api/EggLoader.html @@ -439,7 +439,7 @@

ContextL
Source:
@@ -582,7 +582,7 @@

FileLoader<
Source:
@@ -921,7 +921,7 @@

getAppInfo<
Source:
@@ -1004,7 +1004,7 @@

getHomedir<
Source:
@@ -1095,7 +1095,7 @@

getLoadUn
Source:
@@ -1587,7 +1587,7 @@

Parameters:
Source:
@@ -2556,7 +2556,7 @@
Parameters:
Source:
@@ -2744,7 +2744,7 @@
Parameters:
Source:
@@ -2786,7 +2786,7 @@
Parameters:

- Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:34 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/FileLoader.html b/api/FileLoader.html index 5874483e6a..420fbc5f8c 100644 --- a/api/FileLoader.html +++ b/api/FileLoader.html @@ -695,7 +695,7 @@

parse
- Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:34 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/Helper.html b/api/Helper.html index 652d7615a2..6a5d366a6d 100644 --- a/api/Helper.html +++ b/api/Helper.html @@ -508,7 +508,7 @@
Example

- Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:34 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/I18n.html b/api/I18n.html index e06a0d3388..aaa5a8e971 100644 --- a/api/I18n.html +++ b/api/I18n.html @@ -259,7 +259,7 @@
Example

- Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:34 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/Lifecycle.html b/api/Lifecycle.html index 0eb778db85..a022e1e169 100644 --- a/api/Lifecycle.html +++ b/api/Lifecycle.html @@ -362,7 +362,7 @@

initSource:
@@ -404,7 +404,7 @@

init
- Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:10 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:34 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/Messenger.html b/api/Messenger.html index 344b9041fe..351bf6c029 100644 --- a/api/Messenger.html +++ b/api/Messenger.html @@ -1164,7 +1164,7 @@
Parameters:

- Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:10 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:34 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/Request.html b/api/Request.html index 06230352f3..6b01c5adb5 100644 --- a/api/Request.html +++ b/api/Request.html @@ -1246,7 +1246,7 @@
Parameters:

- Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:10 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:34 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/Response.html b/api/Response.html index 9b38ff9378..932a099016 100644 --- a/api/Response.html +++ b/api/Response.html @@ -372,7 +372,7 @@

type
- Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:10 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:34 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/Router.html b/api/Router.html index c2236a16e8..450c0e2f9f 100644 --- a/api/Router.html +++ b/api/Router.html @@ -849,7 +849,7 @@
Example

- Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:10 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:34 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/app_extend_context.js.html b/api/app_extend_context.js.html index 54c3cfd7b9..7f798802f1 100644 --- a/api/app_extend_context.js.html +++ b/api/app_extend_context.js.html @@ -324,7 +324,7 @@

app/extend/context.js


- Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/app_extend_helper.js.html b/api/app_extend_helper.js.html index b7fb154d52..d4511c750d 100644 --- a/api/app_extend_helper.js.html +++ b/api/app_extend_helper.js.html @@ -104,7 +104,7 @@

app/extend/helper.js


- Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/app_extend_request.js.html b/api/app_extend_request.js.html index 9a6f89bc5a..8f3803178b 100644 --- a/api/app_extend_request.js.html +++ b/api/app_extend_request.js.html @@ -327,7 +327,7 @@

app/extend/request.js


- Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/app_extend_response.js.html b/api/app_extend_response.js.html index 37edb7decf..7d10e4b1e3 100644 --- a/api/app_extend_response.js.html +++ b/api/app_extend_response.js.html @@ -152,7 +152,7 @@

app/extend/response.js


- Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/config_config.default.js.html b/api/config_config.default.js.html index 8bf326514d..1995e034bf 100644 --- a/api/config_config.default.js.html +++ b/api/config_config.default.js.html @@ -414,7 +414,7 @@

config/config.default.js


- Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/config_plugin.js.html b/api/config_plugin.js.html index 2d599af6a9..bdb37def5c 100644 --- a/api/config_plugin.js.html +++ b/api/config_plugin.js.html @@ -197,7 +197,7 @@

config/plugin.js


- Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/global.html b/api/global.html index 87c294e796..ab0301cc94 100644 --- a/api/global.html +++ b/api/global.html @@ -291,7 +291,7 @@

(constant) loa
Source:
@@ -1304,7 +1304,7 @@

Properties

- Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/global.html#BaseContextClass b/api/global.html#BaseContextClass index d1711099b1..1fde6472df 100644 --- a/api/global.html#BaseContextClass +++ b/api/global.html#BaseContextClass @@ -829,7 +829,7 @@ it's instantiated in context level,
- Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/global.html#Controller b/api/global.html#Controller index d15b252b69..80c95deb93 100644 --- a/api/global.html#Controller +++ b/api/global.html#Controller @@ -448,7 +448,7 @@
- Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:34 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/global.html#Service b/api/global.html#Service index 2a300989af..b7b78d319e 100644 --- a/api/global.html#Service +++ b/api/global.html#Service @@ -448,7 +448,7 @@
- Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:10 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:34 GMT+0000 (UTC) using the Minami theme.
diff --git a/api/index.html b/api/index.html index 4747812c4e..356288d69b 100644 --- a/api/index.html +++ b/api/index.html @@ -67,7 +67,7 @@

Classes

  • Agent
    • - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/index.js.html b/api/index.js.html index 15b954f7b6..de62b4efbe 100644 --- a/api/index.js.html +++ b/api/index.js.html @@ -120,7 +120,7 @@

      index.js


      - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/lib_agent.js.html b/api/lib_agent.js.html index 445a306818..f456544651 100644 --- a/api/lib_agent.js.html +++ b/api/lib_agent.js.html @@ -146,7 +146,7 @@

      lib/agent.js


      - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/lib_application.js.html b/api/lib_application.js.html index 2d7177d43c..17ebaca1f1 100644 --- a/api/lib_application.js.html +++ b/api/lib_application.js.html @@ -441,7 +441,7 @@

      lib/application.js


      - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/lib_core_base_context_class.js.html b/api/lib_core_base_context_class.js.html index 25e9ae0294..508447c888 100644 --- a/api/lib_core_base_context_class.js.html +++ b/api/lib_core_base_context_class.js.html @@ -81,7 +81,7 @@

      lib/core/base_context_class.js


      - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/lib_core_base_context_logger.js.html b/api/lib_core_base_context_logger.js.html index 22ab5adaca..7095675f09 100644 --- a/api/lib_core_base_context_logger.js.html +++ b/api/lib_core_base_context_logger.js.html @@ -124,7 +124,7 @@

      lib/core/base_context_logger.js


      - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/lib_core_context_httpclient.js.html b/api/lib_core_context_httpclient.js.html index 42e766e23b..eff4f0a218 100644 --- a/api/lib_core_context_httpclient.js.html +++ b/api/lib_core_context_httpclient.js.html @@ -89,7 +89,7 @@

      lib/core/context_httpclient.js


      - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/lib_core_messenger.js.html b/api/lib_core_messenger.js.html index eb0588b001..f07f055449 100644 --- a/api/lib_core_messenger.js.html +++ b/api/lib_core_messenger.js.html @@ -198,7 +198,7 @@

      lib/core/messenger.js


      - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/lib_egg.js.html b/api/lib_egg.js.html index d04f6c8d8d..70147e47ab 100644 --- a/api/lib_egg.js.html +++ b/api/lib_egg.js.html @@ -515,7 +515,7 @@

      lib/egg.js


      - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/lib_jsdoc_context.jsdoc.html b/api/lib_jsdoc_context.jsdoc.html index 66559c9c1c..5344afd309 100644 --- a/api/lib_jsdoc_context.jsdoc.html +++ b/api/lib_jsdoc_context.jsdoc.html @@ -103,7 +103,7 @@

      lib/jsdoc/context.jsdoc


      - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/lib_jsdoc_request.jsdoc.html b/api/lib_jsdoc_request.jsdoc.html index 218e157059..4c298382ac 100644 --- a/api/lib_jsdoc_request.jsdoc.html +++ b/api/lib_jsdoc_request.jsdoc.html @@ -109,7 +109,7 @@

      lib/jsdoc/request.jsdoc


      - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/lib_jsdoc_response.jsdoc.html b/api/lib_jsdoc_response.jsdoc.html index e497fa10b0..5f1c3edfc0 100644 --- a/api/lib_jsdoc_response.jsdoc.html +++ b/api/lib_jsdoc_response.jsdoc.html @@ -66,7 +66,7 @@

      lib/jsdoc/response.jsdoc


      - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/lib_loader_agent_worker_loader.js.html b/api/lib_loader_agent_worker_loader.js.html index b5e56278ee..8244a2c6fa 100644 --- a/api/lib_loader_agent_worker_loader.js.html +++ b/api/lib_loader_agent_worker_loader.js.html @@ -87,7 +87,7 @@

      lib/loader/agent_worker_loader.js


      - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/lib_loader_app_worker_loader.js.html b/api/lib_loader_app_worker_loader.js.html index 4aa37a5b9c..754c4508d3 100644 --- a/api/lib_loader_app_worker_loader.js.html +++ b/api/lib_loader_app_worker_loader.js.html @@ -108,7 +108,7 @@

      lib/loader/app_worker_loader.js


      - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules__egg-development@2.4.1@egg-development_agent.js.html b/api/node_modules__egg-development@2.4.1@egg-development_agent.js.html index c619e227b4..b6615fefc9 100644 --- a/api/node_modules__egg-development@2.4.1@egg-development_agent.js.html +++ b/api/node_modules__egg-development@2.4.1@egg-development_agent.js.html @@ -147,7 +147,7 @@

      node_modules/_egg-development@2.4.1@egg-development/agent
      - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules__egg-development@2.4.1@egg-development_config_config.default.js.html b/api/node_modules__egg-development@2.4.1@egg-development_config_config.default.js.html index 10f92bba6a..428d1776e3 100644 --- a/api/node_modules__egg-development@2.4.1@egg-development_config_config.default.js.html +++ b/api/node_modules__egg-development@2.4.1@egg-development_config_config.default.js.html @@ -80,7 +80,7 @@

      node_modules/_egg-development@2.4.1@egg-development/confi
      - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules__egg-i18n@2.0.0@egg-i18n_app.js.html b/api/node_modules__egg-i18n@2.0.0@egg-i18n_app.js.html index 223d565344..6e04f7d9c5 100644 --- a/api/node_modules__egg-i18n@2.0.0@egg-i18n_app.js.html +++ b/api/node_modules__egg-i18n@2.0.0@egg-i18n_app.js.html @@ -199,7 +199,7 @@

      node_modules/_egg-i18n@2.0.0@egg-i18n/app.js


      - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules__egg-i18n@2.0.0@egg-i18n_app_extend_context.js.html b/api/node_modules__egg-i18n@2.0.0@egg-i18n_app_extend_context.js.html index 6d0df20727..d672a46b75 100644 --- a/api/node_modules__egg-i18n@2.0.0@egg-i18n_app_extend_context.js.html +++ b/api/node_modules__egg-i18n@2.0.0@egg-i18n_app_extend_context.js.html @@ -73,7 +73,7 @@

      node_modules/_egg-i18n@2.0.0@egg-i18n/app/extend/context.
      - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules__egg-i18n@2.0.0@egg-i18n_config_config.default.js.html b/api/node_modules__egg-i18n@2.0.0@egg-i18n_config_config.default.js.html index 263ba355fd..28517fb6f7 100644 --- a/api/node_modules__egg-i18n@2.0.0@egg-i18n_config_config.default.js.html +++ b/api/node_modules__egg-i18n@2.0.0@egg-i18n_config_config.default.js.html @@ -89,7 +89,7 @@

      node_modules/_egg-i18n@2.0.0@egg-i18n/config/config.defau
      - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules__egg-jsonp@2.0.0@egg-jsonp_app_extend_application.js.html b/api/node_modules__egg-jsonp@2.0.0@egg-jsonp_app_extend_application.js.html index cb1b2833ba..03430ef1d9 100644 --- a/api/node_modules__egg-jsonp@2.0.0@egg-jsonp_app_extend_application.js.html +++ b/api/node_modules__egg-jsonp@2.0.0@egg-jsonp_app_extend_application.js.html @@ -174,7 +174,7 @@

      node_modules/_egg-jsonp@2.0.0@egg-jsonp/app/extend/applic
      - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules__egg-jsonp@2.0.0@egg-jsonp_app_extend_context.js.html b/api/node_modules__egg-jsonp@2.0.0@egg-jsonp_app_extend_context.js.html index 1f91ec553d..e456ffb4ab 100644 --- a/api/node_modules__egg-jsonp@2.0.0@egg-jsonp_app_extend_context.js.html +++ b/api/node_modules__egg-jsonp@2.0.0@egg-jsonp_app_extend_context.js.html @@ -95,7 +95,7 @@

      node_modules/_egg-jsonp@2.0.0@egg-jsonp/app/extend/contex
      - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules__egg-jsonp@2.0.0@egg-jsonp_config_config.default.js.html b/api/node_modules__egg-jsonp@2.0.0@egg-jsonp_config_config.default.js.html index 1b473a365b..deeec83654 100644 --- a/api/node_modules__egg-jsonp@2.0.0@egg-jsonp_config_config.default.js.html +++ b/api/node_modules__egg-jsonp@2.0.0@egg-jsonp_config_config.default.js.html @@ -77,7 +77,7 @@

      node_modules/_egg-jsonp@2.0.0@egg-jsonp/config/config.def
      - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules__egg-logrotator@3.0.3@egg-logrotator_config_config.default.js.html b/api/node_modules__egg-logrotator@3.0.3@egg-logrotator_config_config.default.js.html index 3b00522c04..cfbe51472b 100644 --- a/api/node_modules__egg-logrotator@3.0.3@egg-logrotator_config_config.default.js.html +++ b/api/node_modules__egg-logrotator@3.0.3@egg-logrotator_config_config.default.js.html @@ -86,7 +86,7 @@

      node_modules/_egg-logrotator@3.0.3@egg-logrotator/config/
      - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules__egg-multipart@2.1.0@egg-multipart_app_extend_context.js.html b/api/node_modules__egg-multipart@2.1.0@egg-multipart_app_extend_context.js.html index 0cf8db3073..3ec1df3fd8 100644 --- a/api/node_modules__egg-multipart@2.1.0@egg-multipart_app_extend_context.js.html +++ b/api/node_modules__egg-multipart@2.1.0@egg-multipart_app_extend_context.js.html @@ -139,7 +139,7 @@

      node_modules/_egg-multipart@2.1.0@egg-multipart/app/exten
      - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules__egg-multipart@2.1.0@egg-multipart_config_config.default.js.html b/api/node_modules__egg-multipart@2.1.0@egg-multipart_config_config.default.js.html index fdedd34cf2..a64b8466da 100644 --- a/api/node_modules__egg-multipart@2.1.0@egg-multipart_config_config.default.js.html +++ b/api/node_modules__egg-multipart@2.1.0@egg-multipart_config_config.default.js.html @@ -88,7 +88,7 @@

      node_modules/_egg-multipart@2.1.0@egg-multipart/config/co
      - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules__egg-schedule@3.4.0@egg-schedule_app_extend_agent.js.html b/api/node_modules__egg-schedule@3.4.0@egg-schedule_app_extend_agent.js.html index ec33f461b6..bc128134ce 100644 --- a/api/node_modules__egg-schedule@3.4.0@egg-schedule_app_extend_agent.js.html +++ b/api/node_modules__egg-schedule@3.4.0@egg-schedule_app_extend_agent.js.html @@ -102,7 +102,7 @@

      node_modules/_egg-schedule@3.4.0@egg-schedule/app/extend/
      - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules__egg-security@2.4.0@egg-security_app_extend_context.js.html b/api/node_modules__egg-security@2.4.0@egg-security_app_extend_context.js.html index 78d76bd16c..d82f9fbb77 100644 --- a/api/node_modules__egg-security@2.4.0@egg-security_app_extend_context.js.html +++ b/api/node_modules__egg-security@2.4.0@egg-security_app_extend_context.js.html @@ -229,7 +229,7 @@

      node_modules/_egg-security@2.4.0@egg-security/app/extend/
      - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules__egg-security@2.4.0@egg-security_config_config.default.js.html b/api/node_modules__egg-security@2.4.0@egg-security_config_config.default.js.html index 438f6911d5..8810fa1918 100644 --- a/api/node_modules__egg-security@2.4.0@egg-security_config_config.default.js.html +++ b/api/node_modules__egg-security@2.4.0@egg-security_config_config.default.js.html @@ -158,7 +158,7 @@

      node_modules/_egg-security@2.4.0@egg-security/config/conf
      - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules__egg-session@3.1.0@egg-session_app_extend_application.js.html b/api/node_modules__egg-session@3.1.0@egg-session_app_extend_application.js.html index 8402d3f95e..598bbb02c7 100644 --- a/api/node_modules__egg-session@3.1.0@egg-session_app_extend_application.js.html +++ b/api/node_modules__egg-session@3.1.0@egg-session_app_extend_application.js.html @@ -116,7 +116,7 @@

      node_modules/_egg-session@3.1.0@egg-session/app/extend/ap
      - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules__egg-static@2.1.1@egg-static_config_config.default.js.html b/api/node_modules__egg-static@2.1.1@egg-static_config_config.default.js.html index a52dbf4849..08904c8f67 100644 --- a/api/node_modules__egg-static@2.1.1@egg-static_config_config.default.js.html +++ b/api/node_modules__egg-static@2.1.1@egg-static_config_config.default.js.html @@ -88,7 +88,7 @@

      node_modules/_egg-static@2.1.1@egg-static/config/config.d
      - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules__egg-view@2.1.0@egg-view_app_extend_application.js.html b/api/node_modules__egg-view@2.1.0@egg-view_app_extend_application.js.html index 8aa2340868..fb7a307e2c 100644 --- a/api/node_modules__egg-view@2.1.0@egg-view_app_extend_application.js.html +++ b/api/node_modules__egg-view@2.1.0@egg-view_app_extend_application.js.html @@ -78,7 +78,7 @@

      node_modules/_egg-view@2.1.0@egg-view/app/extend/applicat
      - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules__egg-view@2.1.0@egg-view_app_extend_context.js.html b/api/node_modules__egg-view@2.1.0@egg-view_app_extend_context.js.html index 6cc893b6f2..4df9b7eb06 100644 --- a/api/node_modules__egg-view@2.1.0@egg-view_app_extend_context.js.html +++ b/api/node_modules__egg-view@2.1.0@egg-view_app_extend_context.js.html @@ -107,7 +107,7 @@

      node_modules/_egg-view@2.1.0@egg-view/app/extend/context.
      - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules__egg-view@2.1.0@egg-view_config_config.default.js.html b/api/node_modules__egg-view@2.1.0@egg-view_config_config.default.js.html index e8534b86ce..deb381121a 100644 --- a/api/node_modules__egg-view@2.1.0@egg-view_config_config.default.js.html +++ b/api/node_modules__egg-view@2.1.0@egg-view_config_config.default.js.html @@ -83,7 +83,7 @@

      node_modules/_egg-view@2.1.0@egg-view/config/config.defau
      - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
      diff --git a/api/node_modules__egg-watcher@3.0.0@egg-watcher_config_config.default.js.html b/api/node_modules__egg-watcher@3.1.0@egg-watcher_config_config.default.js.html similarity index 99% rename from api/node_modules__egg-watcher@3.0.0@egg-watcher_config_config.default.js.html rename to api/node_modules__egg-watcher@3.1.0@egg-watcher_config_config.default.js.html index 893a93ef7a..c8985283b8 100644 --- a/api/node_modules__egg-watcher@3.0.0@egg-watcher_config_config.default.js.html +++ b/api/node_modules__egg-watcher@3.1.0@egg-watcher_config_config.default.js.html @@ -2,7 +2,7 @@ - node_modules/_egg-watcher@3.0.0@egg-watcher/config/config.default.js - Documentation + node_modules/_egg-watcher@3.1.0@egg-watcher/config/config.default.js - Documentation @@ -39,7 +39,7 @@

      Classes

      • Agent
        • -

          node_modules/_egg-watcher@3.0.0@egg-watcher/config/config.default.js

          +

          node_modules/_egg-watcher@3.1.0@egg-watcher/config/config.default.js

          @@ -77,7 +77,7 @@

          node_modules/_egg-watcher@3.0.0@egg-watcher/config/config
          - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
          diff --git a/api/node_modules_egg-core_lib_egg.js.html b/api/node_modules_egg-core_lib_egg.js.html index a631d3718d..cf5d2e04f0 100644 --- a/api/node_modules_egg-core_lib_egg.js.html +++ b/api/node_modules_egg-core_lib_egg.js.html @@ -426,7 +426,7 @@

          node_modules/egg-core/lib/egg.js


          - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
          diff --git a/api/node_modules_egg-core_lib_lifecycle.js.html b/api/node_modules_egg-core_lib_lifecycle.js.html index e68094f51a..578b87003f 100644 --- a/api/node_modules_egg-core_lib_lifecycle.js.html +++ b/api/node_modules_egg-core_lib_lifecycle.js.html @@ -131,6 +131,19 @@

          node_modules/egg-core/lib/lifecycle.js

          this[BOOT_HOOKS].push(hook); } + addFunctionAsBootHook(hook) { + // app.js is export as a funciton + // call this function in configDidLoad + this[BOOT_HOOKS].push(class Hook { + constructor(app) { + this.app = app; + } + configDidLoad() { + hook(this.app); + } + }); + } + /** * init boots and trigger config did config */ @@ -297,7 +310,7 @@

          node_modules/egg-core/lib/lifecycle.js


          - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
          diff --git a/api/node_modules_egg-core_lib_loader_context_loader.js.html b/api/node_modules_egg-core_lib_loader_context_loader.js.html index 2415556861..46399c29af 100644 --- a/api/node_modules_egg-core_lib_loader_context_loader.js.html +++ b/api/node_modules_egg-core_lib_loader_context_loader.js.html @@ -166,7 +166,7 @@

          node_modules/egg-core/lib/loader/context_loader.js


          - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
          diff --git a/api/node_modules_egg-core_lib_loader_egg_loader.js.html b/api/node_modules_egg-core_lib_loader_egg_loader.js.html index 8d3529bef3..04a5a34e5b 100644 --- a/api/node_modules_egg-core_lib_loader_egg_loader.js.html +++ b/api/node_modules_egg-core_lib_loader_egg_loader.js.html @@ -146,10 +146,6 @@

          node_modules/egg-core/lib/loader/egg_loader.js

          : this.getServerScope(); } - get bootFileName() { - return this.app.type === 'application' ? 'app' : 'agent'; - } - /** * Get {@link AppInfo#env} * @return {String} env @@ -519,7 +515,6 @@

          node_modules/egg-core/lib/loader/egg_loader.js

          require('./mixin/middleware'), require('./mixin/controller'), require('./mixin/router'), - require('./mixin/boot'), ]; for (const loader of loaders) { @@ -539,7 +534,7 @@

          node_modules/egg-core/lib/loader/egg_loader.js


          - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
          diff --git a/api/node_modules_egg-core_lib_loader_file_loader.js.html b/api/node_modules_egg-core_lib_loader_file_loader.js.html index ab7c84da55..85f3f63499 100644 --- a/api/node_modules_egg-core_lib_loader_file_loader.js.html +++ b/api/node_modules_egg-core_lib_loader_file_loader.js.html @@ -318,7 +318,7 @@

          node_modules/egg-core/lib/loader/file_loader.js


          - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
          diff --git a/api/node_modules_egg-core_lib_loader_mixin_boot.js.html b/api/node_modules_egg-core_lib_loader_mixin_boot.js.html deleted file mode 100644 index feee3f175a..0000000000 --- a/api/node_modules_egg-core_lib_loader_mixin_boot.js.html +++ /dev/null @@ -1,98 +0,0 @@ - - - - - node_modules/egg-core/lib/loader/mixin/boot.js - Documentation - - - - - - - - - - - - - - - - - -
          - -

          node_modules/egg-core/lib/loader/mixin/boot.js

          - - - - - - - -
          -
          -
          'use strict';
          -
          -const path = require('path');
          -const is = require('is-type-of');
          -
          -module.exports = {
          -  /**
          -   * load app.js/agent.js if it's a boot class
          -   */
          -  loadBootHook() {
          -    const fileName = this.bootFileName;
          -    this.timing.start(`Load boot/${fileName}.js`);
          -    for (const unit of this.getLoadUnits()) {
          -      const bootFilePath = this.resolveModule(path.join(unit.path, fileName));
          -      if (!bootFilePath) {
          -        continue;
          -      }
          -      const bootHook = this.requireFile(bootFilePath);
          -      // if is boot class, add to lifecycle
          -      if (is.class(bootHook)) {
          -        this.lifecycle.addBootHook(bootHook);
          -      }
          -    }
          -    // init boots
          -    this.lifecycle.init();
          -    this.timing.end(`Load boot/${fileName}.js`);
          -  },
          -};
          -
          -
          -
          - - - - -
          - -
          - -
          - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. -
          - - - - - diff --git a/api/node_modules_egg-core_lib_loader_mixin_config.js.html b/api/node_modules_egg-core_lib_loader_mixin_config.js.html index dddb07cc7f..2133e9f51c 100644 --- a/api/node_modules_egg-core_lib_loader_mixin_config.js.html +++ b/api/node_modules_egg-core_lib_loader_mixin_config.js.html @@ -174,7 +174,7 @@

          node_modules/egg-core/lib/loader/mixin/config.js


          - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
          diff --git a/api/node_modules_egg-core_lib_loader_mixin_controller.js.html b/api/node_modules_egg-core_lib_loader_mixin_controller.js.html index 50e85741a2..5bdf2e47c5 100644 --- a/api/node_modules_egg-core_lib_loader_mixin_controller.js.html +++ b/api/node_modules_egg-core_lib_loader_mixin_controller.js.html @@ -183,7 +183,7 @@

          node_modules/egg-core/lib/loader/mixin/controller.js


          - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
          diff --git a/api/node_modules_egg-core_lib_loader_mixin_custom.js.html b/api/node_modules_egg-core_lib_loader_mixin_custom.js.html index 4719963bde..7f31178b20 100644 --- a/api/node_modules_egg-core_lib_loader_mixin_custom.js.html +++ b/api/node_modules_egg-core_lib_loader_mixin_custom.js.html @@ -51,43 +51,78 @@

          node_modules/egg-core/lib/loader/mixin/custom.js

          'use strict';
           
          +const is = require('is-type-of');
           const path = require('path');
           
          +const LOAD_BOOT_HOOK = Symbol('Loader#loadBootHook');
          +
           module.exports = {
           
             /**
              * load app.js
              *
              * @example
          +   * - old:
          +   *
              * ```js
              * module.exports = function(app) {
          -   *   // can do everything
          -   *   do();
          -   *
          -   *   // if you will invoke asynchronous, you can use readyCallback
          -   *   const done = app.readyCallback();
          -   *   doAsync(done);
          +   *   doSomething();
              * }
              * ```
          +   *
          +   * - new:
          +   *
          +   * ```js
          +   * module.exports = class Boot {
          +   *   constructor(app) {
          +   *     this.app = app;
          +   *   }
          +   *   configDidLoad() {
          +   *     doSomething();
          +   *   }
          +   * }
              * @since 1.0.0
              */
             loadCustomApp() {
          -    this.timing.start('Load app.js');
          +    this[LOAD_BOOT_HOOK]('app');
               this.lifecycle.triggerConfigDidLoad();
          -    this.getLoadUnits()
          -      .forEach(unit => this.loadFile(this.resolveModule(path.join(unit.path, 'app'))));
          -    this.timing.end('Load app.js');
             },
           
             /**
              * Load agent.js, same as {@link EggLoader#loadCustomApp}
              */
             loadCustomAgent() {
          -    this.timing.start('Load agent.js');
          +    this[LOAD_BOOT_HOOK]('agent');
               this.lifecycle.triggerConfigDidLoad();
          -    this.getLoadUnits()
          -      .forEach(unit => this.loadFile(this.resolveModule(path.join(unit.path, 'agent'))));
          -    this.timing.end('Load agent.js');
          +  },
          +
          +  // FIXME: no logger used after egg removed
          +  loadBootHook() {
          +    // do nothing
          +  },
          +
          +  [LOAD_BOOT_HOOK](fileName) {
          +    this.timing.start(`Load ${fileName}.js`);
          +    for (const unit of this.getLoadUnits()) {
          +      const bootFilePath = this.resolveModule(path.join(unit.path, fileName));
          +      if (!bootFilePath) {
          +        continue;
          +      }
          +      const bootHook = this.requireFile(bootFilePath);
          +      if (is.class(bootHook)) {
          +        // if is boot class, add to lifecycle
          +        this.lifecycle.addBootHook(bootHook);
          +      } else if (is.function(bootHook)) {
          +        // if is boot function, wrap to class
          +        // for compatibility
          +        this.lifecycle.addFunctionAsBootHook(bootHook);
          +      } else {
          +        this.options.logger.warn('[egg-loader] %s must exports a boot class', bootFilePath);
          +      }
          +    }
          +    // init boots
          +    this.lifecycle.init();
          +    this.timing.end(`Load ${fileName}.js`);
             },
           };
           
          @@ -102,7 +137,7 @@

          node_modules/egg-core/lib/loader/mixin/custom.js


          - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
          diff --git a/api/node_modules_egg-core_lib_loader_mixin_extend.js.html b/api/node_modules_egg-core_lib_loader_mixin_extend.js.html index 0b01642394..e5b401ce19 100644 --- a/api/node_modules_egg-core_lib_loader_mixin_extend.js.html +++ b/api/node_modules_egg-core_lib_loader_mixin_extend.js.html @@ -212,7 +212,7 @@

          node_modules/egg-core/lib/loader/mixin/extend.js


          - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
          diff --git a/api/node_modules_egg-core_lib_loader_mixin_middleware.js.html b/api/node_modules_egg-core_lib_loader_mixin_middleware.js.html index 41c7a9c107..8276ef3746 100644 --- a/api/node_modules_egg-core_lib_loader_mixin_middleware.js.html +++ b/api/node_modules_egg-core_lib_loader_mixin_middleware.js.html @@ -173,7 +173,7 @@

          node_modules/egg-core/lib/loader/mixin/middleware.js


          - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
          diff --git a/api/node_modules_egg-core_lib_loader_mixin_plugin.js.html b/api/node_modules_egg-core_lib_loader_mixin_plugin.js.html index e7b1fa5505..cc77a87fd6 100644 --- a/api/node_modules_egg-core_lib_loader_mixin_plugin.js.html +++ b/api/node_modules_egg-core_lib_loader_mixin_plugin.js.html @@ -457,7 +457,7 @@

          node_modules/egg-core/lib/loader/mixin/plugin.js


          - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
          diff --git a/api/node_modules_egg-core_lib_loader_mixin_router.js.html b/api/node_modules_egg-core_lib_loader_mixin_router.js.html index 0407e55990..0ac4b78f79 100644 --- a/api/node_modules_egg-core_lib_loader_mixin_router.js.html +++ b/api/node_modules_egg-core_lib_loader_mixin_router.js.html @@ -81,7 +81,7 @@

          node_modules/egg-core/lib/loader/mixin/router.js


          - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
          diff --git a/api/node_modules_egg-core_lib_loader_mixin_service.js.html b/api/node_modules_egg-core_lib_loader_mixin_service.js.html index 881434c1ca..285c8201e8 100644 --- a/api/node_modules_egg-core_lib_loader_mixin_service.js.html +++ b/api/node_modules_egg-core_lib_loader_mixin_service.js.html @@ -89,7 +89,7 @@

          node_modules/egg-core/lib/loader/mixin/service.js


          - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
          diff --git a/api/node_modules_egg-core_lib_utils_base_context_class.js.html b/api/node_modules_egg-core_lib_utils_base_context_class.js.html index 824568fbb5..0cf5b94024 100644 --- a/api/node_modules_egg-core_lib_utils_base_context_class.js.html +++ b/api/node_modules_egg-core_lib_utils_base_context_class.js.html @@ -100,7 +100,7 @@

          node_modules/egg-core/lib/utils/base_context_class.js

          - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
          diff --git a/api/node_modules_egg-core_lib_utils_index.js.html b/api/node_modules_egg-core_lib_utils_index.js.html index 96772dbb69..def5c3d3e7 100644 --- a/api/node_modules_egg-core_lib_utils_index.js.html +++ b/api/node_modules_egg-core_lib_utils_index.js.html @@ -153,7 +153,7 @@

          node_modules/egg-core/lib/utils/index.js


          - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
          diff --git a/api/node_modules_egg-core_lib_utils_router.js.html b/api/node_modules_egg-core_lib_utils_router.js.html index 3cee9ba96a..7052454ee3 100644 --- a/api/node_modules_egg-core_lib_utils_router.js.html +++ b/api/node_modules_egg-core_lib_utils_router.js.html @@ -388,7 +388,7 @@

          node_modules/egg-core/lib/utils/router.js


          - Documentation generated by JSDoc 3.5.5 on Thu Sep 20 2018 10:21:09 GMT+0000 (UTC) using the Minami theme. + Documentation generated by JSDoc 3.5.5 on Fri Sep 21 2018 11:44:33 GMT+0000 (UTC) using the Minami theme.
          diff --git a/en/basics/objects.html b/en/basics/objects.html index d5034c9468..375a5b63ea 100644 --- a/en/basics/objects.html +++ b/en/basics/objects.html @@ -79,7 +79,7 @@

          # How to G

        • Controller file

          -
          // app/controller/user.js
          class UserController extends Controller {
          async fetch() {
          this.ctx.body = app.cache.get(this.ctx.query.id);
          }
          }
          +
          // app/controller/user.js
          class UserController extends Controller {
          async fetch() {
          this.ctx.body = this.app.cache.get(this.ctx.query.id);
          }
          }

        Like the Koa, on the Context object, we can access the Application object via ctx.app. Use the above Controller file as an example:

        @@ -138,7 +138,7 @@

        # Config

        # How to Get

        We can get the config object from the Application instance via app.config, or get the config object viathis.config on the instance of Controller, Service or Helper.

        # Logger

        -

        Egg builds in powerful logger, it is very convenient to print a variety of levels of logs to the corresponding log file, each logger object provides 5 level methods:

        +

        Egg builds in powerful logger, it is very convenient to print a variety of levels of logs to the corresponding log file, each logger object provides 4 level methods:

        • logger.debug()
        • logger.info()
        • diff --git a/en/plugins/watcher.html b/en/plugins/watcher.html index f0bd166399..e14ef39b34 100644 --- a/en/plugins/watcher.html +++ b/en/plugins/watcher.html @@ -98,7 +98,7 @@

          #<

          # Customize Watching Mode

          Say we want to build a custom event source plugin (package name: egg-watcher-custom, eggPlugin.name: watcherCustom).

          Firstly define our custom event source like this:

          -
          // {plugin_root}/lib/custom_event_source.js
          const Base = require('sdk-base');
          class CustomEventSource extends Base {
          // `opts` comes from app.config[${eventSourceName}]
          // `eventSourceName` will be registered later in
          // `config.watcher.eventSources` as the key shown below
          constructor(opts) {
          super(opts);
          this.ready(true);
          }

          watch(path) {
          // replace this with your desired way of watching,
          // when aware of any change, emit a `change` event
          // with an info object containing `path` property
          // specifying the changed directory or file.
          this._h = setInterval(() => {
          this.emit('change', { path });
          }, 1000);
          }

          unwatch() {
          // replace this with your implementation
          if (this._h) {
          clearInterval(this._h);
          }
          }
          }

          module.exports = CustomEventSource;
          +
          // {plugin_root}/lib/custom_event_source.js
          const Base = require('sdk-base');

          class CustomEventSource extends Base {
          // `opts` comes from app.config[${eventSourceName}]
          // `eventSourceName` will be registered later in
          // `config.watcher.eventSources` as the key shown below
          constructor(opts) {
          super(opts);
          this.ready(true);
          }

          watch(path) {
          // replace this with your desired way of watching,
          // when aware of any change, emit a `change` event
          // with an info object containing `path` property
          // specifying the changed directory or file.
          this._h = setInterval(() => {
          this.emit('change', { path });
          }, 1000);
          }

          unwatch() {
          // replace this with your implementation
          if (this._h) {
          clearInterval(this._h);
          }
          }
          }

          module.exports = CustomEventSource;

          Event source implementations varies according to your running environment. When working with vagrant, docker, samba or such other non-standard way of development, you should use a different watch API specific to what you are working with.

          Then add your custom event source to config:

          // config.default.js
          exports.watcher = {
          eventSources: {
          custom: require('../lib/custom_event_source'),
          },
          };
          diff --git a/zh-cn/basics/objects.html b/zh-cn/basics/objects.html index 79cc864b0a..10afe80461 100644 --- a/zh-cn/basics/objects.html +++ b/zh-cn/basics/objects.html @@ -79,7 +79,7 @@

          #
        • Controller 文件

          -
          // app/controller/user.js
          class UserController extends Controller {
          async fetch() {
          this.ctx.body = app.cache.get(this.ctx.query.id);
          }
          }
          +
          // app/controller/user.js
          class UserController extends Controller {
          async fetch() {
          this.ctx.body = this.app.cache.get(this.ctx.query.id);
          }
          }

        Koa 一样,在 Context 对象上,可以通过 ctx.app 访问到 Application 对象。以上面的 Controller 文件举例:

        @@ -138,7 +138,7 @@

        # Config

        # 获取方式

        我们可以通过 app.config 从 Application 实例上获取到 config 对象,也可以在 Controller, Service, Helper 的实例上通过 this.config 获取到 config 对象。

        # Logger

        -

        框架内置了功能强大的日志功能,可以非常方便的打印各种级别的日志到对应的日志文件中,每一个 logger 对象都提供了 5 个级别的方法:

        +

        框架内置了功能强大的日志功能,可以非常方便的打印各种级别的日志到对应的日志文件中,每一个 logger 对象都提供了 4 个级别的方法:

        • logger.debug()
        • logger.info()
        • diff --git a/zh-cn/plugins/watcher.html b/zh-cn/plugins/watcher.html index efa58cac3f..6648a13eb7 100644 --- a/zh-cn/plugins/watcher.html +++ b/zh-cn/plugins/watcher.html @@ -98,7 +98,7 @@

          #<

          # Customize Watching Mode

          Say we want to build a custom event source plugin (package name: egg-watcher-custom, eggPlugin.name: watcherCustom).

          Firstly define our custom event source like this:

          -
          // {plugin_root}/lib/custom_event_source.js
          const Base = require('sdk-base');
          class CustomEventSource extends Base {
          // `opts` comes from app.config[${eventSourceName}]
          // `eventSourceName` will be registered later in
          // `config.watcher.eventSources` as the key shown below
          constructor(opts) {
          super(opts);
          this.ready(true);
          }

          watch(path) {
          // replace this with your desired way of watching,
          // when aware of any change, emit a `change` event
          // with an info object containing `path` property
          // specifying the changed directory or file.
          this._h = setInterval(() => {
          this.emit('change', { path });
          }, 1000);
          }

          unwatch() {
          // replace this with your implementation
          if (this._h) {
          clearInterval(this._h);
          }
          }
          }

          module.exports = CustomEventSource;
          +
          // {plugin_root}/lib/custom_event_source.js
          const Base = require('sdk-base');

          class CustomEventSource extends Base {
          // `opts` comes from app.config[${eventSourceName}]
          // `eventSourceName` will be registered later in
          // `config.watcher.eventSources` as the key shown below
          constructor(opts) {
          super(opts);
          this.ready(true);
          }

          watch(path) {
          // replace this with your desired way of watching,
          // when aware of any change, emit a `change` event
          // with an info object containing `path` property
          // specifying the changed directory or file.
          this._h = setInterval(() => {
          this.emit('change', { path });
          }, 1000);
          }

          unwatch() {
          // replace this with your implementation
          if (this._h) {
          clearInterval(this._h);
          }
          }
          }

          module.exports = CustomEventSource;

          Event source implementations varies according to your running environment. When working with vagrant, docker, samba or such other non-standard way of development, you should use a different watch API specific to what you are working with.

          Then add your custom event source to config:

          // config.default.js
          exports.watcher = {
          eventSources: {
          custom: require('../lib/custom_event_source'),
          },
          };