Commit d272934e by Alexander Makarov

Changed extensions's guide section about namespaces once again

parent 2e80591d
...@@ -13,7 +13,14 @@ Code style ...@@ -13,7 +13,14 @@ Code style
- Do not use `yiisoft` in the namespaces. - Do not use `yiisoft` in the namespaces.
- Do not use `\yii`, `\yii2` or `\yiisoft` as root namespace. - Do not use `\yii`, `\yii2` or `\yiisoft` as root namespace.
- Use `vendor-name` as the root namespace. - Namespace should be `vendorName/type/uniqueName` or `vendorName/uniqueName` if type is hard to tell.
Choosing unique namespace is important to prevent name collisions. Examples:
- `samdark\wiki`
- `samdark\modules\tester`
- `samdark\modules\debugger`
- `samdark\widgets\iconizedMenu`
Distribution Distribution
------------ ------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment