Skip to content

Referenzerror in RepostoryManager / Custom locations not loading properly #397

@eissmann

Description

@eissmann

$provider = config("modules.location.$location.provider", 'Providers\\ModuleServiceProvider');

Hi,

I stumbled about the following issue. In the RepositoryManager (see referenced file) the config-value for "modules.location.$location.provider" will never be loaded, since the key in the Config-File "modules.php" is "locations" and not "location". So it always uses the Default-Value here, which is ok, as long as I do not change the name of the ModuleServiceProvider. As soon as I change the name to something else e.g. AddOnServiceProvider, the module can not load properly, since the class was not found.

I temporarly fixed the config-key, but then the namespace "Providers" is missing in the classname. I hope this makes sense. Feel free to contact me for further questions. :)

Thanks,
Steffen

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions