-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Conversation
Add <type> - placeholder to module path. Use Customer Import/Export module instead of Customer module to show hyphen using in module name.
@@ -34,7 +34,7 @@ See <a href="{{page.baseurl}}architecture/archi_perspectives/components/modules/ | |||
|
|||
## Where do modules live? | |||
|
|||
Modules typically live in the `vendor` directory of a Magento installation, in a directory with the following PSR-0 compliant format: `vendor/<vendor>/module-<module-mame>`. For example, the Customer module of Magento can be found at `vendor/magento/module-customer`. | |||
Modules typically live in the `vendor` directory of a Magento installation, in a directory with the following PSR-0 compliant format: `vendor/<vendor>/<type>-<module-mame>`. For example, the Customer Import/Export module of Magento can be found at `vendor/magento/module-customer-import-export`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<module-mame>
should be <module-name>
Also, why replace module
with <type>
? Doesn't this contradict Magento's module naming convention?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<type>
can be one of values:
- "module" - for modules (
module-customer-import-export
); - "theme" - for front and admin themes (
theme-frontend-luma
); - "language" - for language packs (
language-de_de
);
May be add this info to doc?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point! You're absolutely right. Sorry, I was too focused on the word "module". Yes, I think it would be beneficial to add these to the docs as well. Do you mind adding them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ок, I'll add this info to doc.
Add module type description.
Info about module types added. But I have not good English level, therefore you can check it and fix before merging :) |
Thanks @likemusic! |
Changed Technical Guidelines to be version specific
Add - placeholder to module path. Use Customer Import/Export module instead of Customer module to show hyphen using in module name.