Thanks to visit codestin.com
Credit goes to github.com

Skip to content

update config.php to utilize environment variables#71

Merged
kattrali merged 1 commit into
bugsnag:masterfrom
browner12:patch-2
Dec 7, 2015
Merged

update config.php to utilize environment variables#71
kattrali merged 1 commit into
bugsnag:masterfrom
browner12:patch-2

Conversation

@browner12
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

thoughts?

@browner12
Copy link
Copy Markdown
Contributor Author

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

@browner12
Copy link
Copy Markdown
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
Copy Markdown
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