simpleweb/BugsnagBundle

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

SimplewebBugsnagBundle

Symfony2 bugsnag-php 2.x integration.

Installation Instructions
Step 1: Download the BugsnagBundle using composer

The best way to install the bundle is by using Composer. Execute the following command:

composer require simpleweb/bugsnag-bundle

Step 2: Include the bundle in your AppKernel

app/AppKernel.php

ic function registerBundles()

$bundles = array(
    ...
    new Simpleweb\BugsnagBundle\SimplewebBugsnagBundle()
    ...
);

Step 3: Configuration

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: ~
Step 4 (optional): Reporting errors from custom commands

By default, this bundle does not handle errors and exceptions that are raised from custom commands.

Altering the console file

app/console

Swap:

Symfony\Bundle\FrameworkBundle\Console\Application;

For:

Simpleweb\BugsnagBundle\Console\Application;
License

This bundle is under the MIT license. See the complete license in the bundle:

Resources/meta/LICENSE
Testing

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.

Contributors

A lot of this code is based on the wrep and evolution7 bundles.

Why yet another bundle?

See also the list of contributors.

Reporting an issue or a feature request

Issues and feature requests are tracked in the Github issue tracker. You're very welcome to submit issues or submit a pull request!


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.