Commit 89849303 by Alexander Makarov

And again changed namespace naming recommendation in extension docs. Should be final now.

parent ac24ae15
......@@ -13,14 +13,13 @@ Code style
- Do not use `yiisoft` in the namespaces.
- Do not use `\yii`, `\yii2` or `\yiisoft` as root namespace.
- Namespace should be `vendorName\type\uniqueName` or `vendorName\uniqueName` if type is hard to tell.
- Namespace should be `vendorName\uniqueName`.
Choosing unique namespace is important to prevent name collisions. Examples:
Choosing unique namespace is important to prevent name collisions and autoload faster. Examples:
- `samdark\wiki`
- `samdark\modules\tester`
- `samdark\modules\debugger`
- `samdark\widgets\iconizedMenu`
- `samdark\debugger`
- `samdark\googlemap`
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