2017 © Pedro Peláez
 

symfony-bundle bugsnag-bundle

Bugsnag error reporting integration for Symfony2

image

simpleweb/bugsnag-bundle

Bugsnag error reporting integration for Symfony2

  • Monday, March 2, 2015
  • by simpleweb
  • Repository
  • 16 Watchers
  • 1 Stars
  • 11,059 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 9 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

SimplewebBugsnagBundle

Symfony2 bugsnag-php 2.x integration., (*1)

Installation Instructions

Step 1: Download the BugsnagBundle using composer

The best way to install the bundle is by using Composer. Execute the following command:, (*2)

composer require simpleweb/bugsnag-bundle, (*3)

Step 2: Include the bundle in your AppKernel

app/AppKernel.php, (*4)

public function registerBundles()
{
    $bundles = array(
        ...
        new Simpleweb\BugsnagBundle\SimplewebBugsnagBundle()
        ...
    );
}

Step 3: Configuration

app/config/config.yml, (*5)

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: ~

Step 4 (optional): Reporting errors from custom commands

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

Altering the console file

app/console, (*7)

Swap:, (*8)

use Symfony\Bundle\FrameworkBundle\Console\Application;

For:, (*9)

use Simpleweb\BugsnagBundle\Console\Application;

License

This bundle is under the MIT license. See the complete license in the bundle:, (*10)

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:, (*11)

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., (*12)

Contributors

A lot of this code is based on the wrep and evolution7 bundles., (*13)

Why yet another bundle?

  • 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., (*14)

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!, (*15)

The Versions

02/03 2015

dev-master

9999999-dev

Bugsnag error reporting integration for Symfony2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Steve Lacey

logging symfony2 errors tracking exceptions bugsnag