|
$configPath = $this->recurseTree($moduleClassPath); |
This line of code requires every module to have a module.config.php lying around, even if the Module.php does provide the config already.
Since the Module class is already reflected to find the path for the module, why not just also check for the ConfigProviderInterface and get the config from there.
We could still get the config from module.config.php as a backup or vice versa to not break the current behavior.
api-tools-configuration/src/ModuleUtils.php
Line 112 in d3714d3
This line of code requires every module to have a
module.config.phplying around, even if theModule.phpdoes provide the config already.Since the
Moduleclass is already reflected to find the path for the module, why not just also check for theConfigProviderInterfaceand get the config from there.We could still get the config from
module.config.phpas a backup or vice versa to not break the current behavior.