Skip to content

Commit

Permalink
docs: fixed typo. (#2961)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericyangpan authored and dead-horse committed Sep 5, 2018
1 parent b971e66 commit a2df5ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/en/advanced/framework.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ The name of framework, default as `egg`, is a indispensable option to launch an

As a loadUnit of framework, yadan is going to load specific directories and files, such as `app` and `config`. Find more files loaded at [Loader](./loader.md).

### Princeple of Framework Extension
### Principle of Framework Extension

The path of framework is set as a varible named as `Symbol.for('egg#eggPath') to expose itself to Loader. Why? It seems that the simplest way is to pass a param to the constructor. The reason is to expose those paths of each level of inherited frameworks and reserve their sequences. Since Egg is a framework capable of unlimited inheritance, each layer has to designate their own eggPath so that all the eggPaths are accessiable through the prototype chain.

Expand Down

0 comments on commit a2df5ad

Please sign in to comment.