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

"Missing events provider" after installing #9

Closed
evtaylor opened this issue Mar 17, 2015 · 0 comments
Closed

"Missing events provider" after installing #9

evtaylor opened this issue Mar 17, 2015 · 0 comments
Labels

Comments

@evtaylor
Copy link

I believe this is a Windows only issue due to a bug in the loadConfigs() function in Baun class.

foreach ($configFiles as $configFile) {
    $configKey = str_replace(BASE_PATH . 'config/', '', $configFile);
    $configKey = str_replace(DIRECTORY_SEPARATOR, '-', strtolower($configKey));
    $configKey = str_replace('.php', '', $configKey);
    $configData[$configKey] = require $configFile;
}

should be:

foreach ($configFiles as $configFile) {
    $configKey = str_replace(BASE_PATH . 'config'.DIRECTORY_SEPARATOR, '', $configFile);
    $configKey = str_replace(DIRECTORY_SEPARATOR, '-', strtolower($configKey));
    $configKey = str_replace('.php', '', $configKey);
    $configData[$configKey] = require $configFile;
}

or else config keys are created incorrectly and $this->config->get('providers.events') will return nothing and fail.

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

No branches or pull requests

2 participants