Skip to content

Config loading over ConfigProviderInterface if available #11

@func0der

Description

@func0der

$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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions