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
public function registerBundles()
{
$bundles = array(
...
new Simpleweb\BugsnagBundle\SimplewebBugsnagBundle()
...
);
}
app/config/config.yml
simpleweb_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.
app/console
Swap:
use Symfony\Bundle\FrameworkBundle\Console\Application;
For:
use 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:
simpleweb_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.
- I wanted to make a number of non-BC changes
- I wanted some functionality from Evolution7
- I wanted some functionality from Wrep
- I wanted to rip out a lot of stuff from Evolution7 (release stage/class loader)
- I didn't want Evolution7's license (pretty sure it should be Wrep's?)
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!