Yet another metamodule, like you know it from D3 and many others.
This module will be opensource - forever! Let's do one module together, instead of having thousand of different moduleloaders.
- Moduleloading
- Module dependencies checking
- Dependency injection container
Via Composer:
- Add yamm/yamm to your composer.json's require section
- Run
composer update - Create a file "vendormetadata.php" in
modules/yamm/ - Create a file
marm_yamm.config.phpin OXiDs root directory. See Section Config File for further information. - Activate the modul.
Manual:
- Place the whole module in your shop in
modules/yamm/ - Create a file "vendormetadata.php" in
modules/yamm/ - Create a file
marm_yamm.config.phpin OXiDs root directory. See Section Config File for further information. - Activate the modul.
The file marm_yamm.config.php must contain all information regarding predefined modules and settings as an associative array:
<?php
$aYAMMConfig = array(
'aYAMMEnabledModules' => array(), // required
'aModulePaths' => array(), // optional
'aYAMMDisabledModules' => array(), // optional
'aYAMMSpecialClassOrder' => array(), // optional
'bYAMMBlockControl' => false, // optional
/* Any other keys go here */
);aYAMMEnabledModulesis a simple array containing the IDs of all modules to be loaded, in loading order.aModulePathsis an associative array mapping module IDs to directories. It can be used to override OXiD own resolvence.aYAMMDisabledModulesis a simple array of containing the IDs of all modules that should be disabled. This takes precedence over OXiDs own settings, while itself beeing superseded by aYAMMEnabledModules .aYAMMForceOrderallows for diverging inheritance orders set for individual classes. For each class name given as key, the extensions made by each module ID present in the value array will be moved to the end of the chain, in given order.bYAMMBlockControltells YAMM to block user control of inheritance order and activation of unhandled modules. Default isfalse.
Any other key will be written directly into oxConfig .
The most recent release is 1.0