From 303406377df005c658b6bea8f5e821f4963ff9ae Mon Sep 17 00:00:00 2001 From: Adarsh Manickam Date: Tue, 12 Nov 2019 18:59:45 +0530 Subject: [PATCH] Fixed incorrect module dependency examples --- .../components/modules/mod_depend.md | 26 ++++++++++++++----- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/guides/v2.2/architecture/archi_perspectives/components/modules/mod_depend.md b/guides/v2.2/architecture/archi_perspectives/components/modules/mod_depend.md index f9b0e0e7643..b10fd480d1b 100644 --- a/guides/v2.2/architecture/archi_perspectives/components/modules/mod_depend.md +++ b/guides/v2.2/architecture/archi_perspectives/components/modules/mod_depend.md @@ -45,7 +45,7 @@ The `require` section of `app/code///composer.json` file contain "magento/module-variable": "100.3.*", "magento/module-widget": "101.1.*", "magento/module-authorization": "100.3.*" - }, + } ... ``` @@ -57,15 +57,27 @@ A module with a *soft dependency* on another module can function properly withou * Extend another module's configuration. * Extend another module's [layout](https://glossary.magento.com/layout). -The `` section of `app/code///etc/module.xml` file contains soft dependency definitions for the module. For example: +The `suggest` section of `app/code///composer.json` file contains soft dependency definitions for the module. For example: + +```json + ... + "suggest": { + "magento/module-graph-ql": "*", + "magento/module-graph-ql-cache": "*", + "magento/module-store-graph-ql": "*" + } + ... +``` + +The `` node of `app/code///etc/module.xml` file also contains soft dependency definitions for the module. For example: ```xml - - - - - + + + + + ```