This repository was archived by the owner on Nov 19, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +19
-7
lines changed
guides/v2.2/architecture/archi_perspectives/components/modules Expand file tree Collapse file tree 1 file changed +19
-7
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ The `require` section of `app/code/<Vendor>/<Module>/composer.json` file contain
45
45
"magento/module-variable" : " 100.3.*" ,
46
46
"magento/module-widget" : " 101.1.*" ,
47
47
"magento/module-authorization" : " 100.3.*"
48
- },
48
+ }
49
49
...
50
50
```
51
51
@@ -57,15 +57,27 @@ A module with a *soft dependency* on another module can function properly withou
57
57
* Extend another module's configuration.
58
58
* Extend another module's [ layout] ( https://glossary.magento.com/layout ) .
59
59
60
- The ` <sequence> ` section of ` app/code/<Vendor>/<Module>/etc/module.xml ` file contains soft dependency definitions for the module. For example:
60
+ The ` suggest ` section of ` app/code/<Vendor>/<Module>/composer.json ` file contains soft dependency definitions for the module. For example:
61
+
62
+ ``` json
63
+ ...
64
+ "suggest" : {
65
+ "magento/module-graph-ql" : " *" ,
66
+ "magento/module-graph-ql-cache" : " *" ,
67
+ "magento/module-store-graph-ql" : " *"
68
+ }
69
+ ...
70
+ ```
71
+
72
+ The ` <sequence> ` node of ` app/code/<Vendor>/<Module>/etc/module.xml ` file also contains soft dependency definitions for the module. For example:
61
73
62
74
``` xml
63
75
<module name =" Magento_Cms" >
64
- <sequence >
65
- <module name =" Magento_Store" />
66
- <module name =" Magento_Theme" />
67
- <module name =" Magento_Variable" />
68
- </sequence >
76
+ <sequence >
77
+ <module name =" Magento_Store" />
78
+ <module name =" Magento_Theme" />
79
+ <module name =" Magento_Variable" />
80
+ </sequence >
69
81
</module >
70
82
```
71
83
You can’t perform that action at this time.
0 commit comments