Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Referenzerror in RepostoryManager / Custom locations not loading properly #397

Open
eissmann opened this issue Jun 25, 2019 · 0 comments
Open

Comments

@eissmann
Copy link

$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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant