Some area-specific configurations can override or extend the global configuration. Collects configuration files from all modules and merges them into the global configuration. Area-specific configuration from modules ( //-/etc//*.xml).Collects certain configuration files from all modules and merges them together. Global configurations from modules ( //-/etc/*.xml).Primary configuration ( app/etc/di.xml).How Commerce loads configuration filesĬommerce loads configuration files in the following order (all paths are relative to your Commerce installation directory): This section discusses how configuration files are loaded and merged. For more information, see Modules and areas. For example, adminhtml is an area scope that is loaded with at the stage with other modules’ adminhtml configurations. For example, module.xml files are merged with other module.xml files.Ĭonfiguration scope-Complementary to configuration stages, a scope defines the configuration type model. Each stage determines when configuration type is loaded and merged with same-named configuration types. For example, the configuration object for config.xml is Magento\Framework\App\Config.Ĭonfiguration stage-Stages are defined as primary, global, and area. Multiple modules can declare configuration files that affect the same configuration type (for example, events), and these multiple configuration files are merged.įollowing are common terms used in this topic:Ĭonfiguration object-The Commerce library or class that is responsible for defining and validating the configuration type. You can use these files-also referred to as configuration types-to customize specific aspects of your module’s behavior. Commerce’s multiple configuration files load on demand only when a module requests a specific configuration type. The responsibilities of the config.xml configuration file used in earlier versions of Commerce is now divided between several files, located in various module directories.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |