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

update config.php to utilize environment variables #71

Merged
merged 1 commit into from
Dec 7, 2015
Merged

update config.php to utilize environment variables #71

merged 1 commit into from
Dec 7, 2015

Conversation

browner12
Copy link
Contributor

assets are typically overwritten every time the package is updated, so users should have an alternative way to set their bugsnag configuration that prevents having to redo it on updates. this update allows users to set configuration with their environment variables, but falls back on the sensible defaults. this change is non-breaking.

also use short array syntax

assets are typically overwritten every time the package is updated, so users should have an alternative way to set their bugsnag configuration that prevents having to redo it on updates.  this update allows users to set configuration with their environment variables, but falls back on the sensible defaults. this change is non-breaking.

also use short array syntax
@browner12
Copy link
Contributor Author

thoughts?

@browner12
Copy link
Contributor Author

could an owner please comment, merge, or close please?

@browner12
Copy link
Contributor Author

correct, but when you publish assets, this file is copied to /config/bugsnag.php. if we utilize environment variables, then the user will not need to redo their bugsnag config file every time they publish assets.

@kattrali
Copy link
Contributor

kattrali commented Dec 7, 2015

Thank you for the contribution, @browner12. This change makes sense, particularly since you can already load the API key from an environment variable. I'll add a few lines to the configuration documentation for the change and then it is ready to ship.

kattrali added a commit that referenced this pull request Dec 7, 2015
update `config.php` to utilize environment variables
@kattrali kattrali merged commit 70d3600 into bugsnag:master Dec 7, 2015
@browner12 browner12 deleted the patch-2 branch December 7, 2015 19:05
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

Successfully merging this pull request may close these issues.

2 participants