Name: BugsnagBundle
Owner: Simpleweb
Description: An integration bundle for the bugsnag-php module into the Symfony2 framework.
Created: 2014-05-08 10:03:07.0
Updated: 2015-03-13 20:59:55.0
Pushed: 2016-03-04 13:14:58.0
Homepage: null
Size: 216
Language: PHP
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Symfony2 bugsnag-php 2.x integration.
The best way to install the bundle is by using Composer. Execute the following command:
composer require simpleweb/bugsnag-bundle
app/AppKernel.php
ic function registerBundles()
$bundles = array(
...
new Simpleweb\BugsnagBundle\SimplewebBugsnagBundle()
...
);
app/config/config.yml
leweb_bugsnag:
# required
api_key: your api key
# optional
app_version: ~ # useful if you version your app
notify_stages: [ stage, prod ] # default
proxy:
host: ~
port: ~
user: ~
password: ~
By default, this bundle does not handle errors and exceptions that are raised from custom commands.
console
fileapp/console
Swap:
Symfony\Bundle\FrameworkBundle\Console\Application;
For:
Simpleweb\BugsnagBundle\Console\Application;
This bundle is under the MIT license. See the complete license in the bundle:
Resources/meta/LICENSE
Included in the bundle is a controller that will allow you to test if your site is hooked up correctly. Just add the following to your routing.yml:
leweb_bugsnag_bundle:
resource: "@SimplewebBugsnagBundle/Resources/config/routing.yml"
prefix: /bugsnag
And then afterwards you can access your.domain/bugsnag/exception
and your.domain/bugsnag/error
which should then send errors to your configured Bugsnag project.
A lot of this code is based on the wrep and evolution7 bundles.
See also the list of contributors.
Issues and feature requests are tracked in the Github issue tracker. You're very welcome to submit issues or submit a pull request!