Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Commit

Permalink
Merge pull request #3 from bugsnag/notifier
Browse files Browse the repository at this point in the history
Set the notifier info
  • Loading branch information
kattrali committed Jul 7, 2016
2 parents ef7b7c3 + 5feee3e commit d6ae7eb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Bugsnag/Silex/Provider/BugsnagServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ public function register(Application $app)
{
$app['bugsnag'] = $app->share(function () use($app) {
$client = new \Bugsnag_Client($app['bugsnag.options']['apiKey']);
$client->setNotifier(array(
'name' => 'Bugsnag Silex',
'version' => '1.1.0',
'url' => 'https://github.com/bugsnag/bugsnag-silex',
));
set_error_handler(array($client, 'errorhandler'));
set_exception_handler(array($client, 'exceptionhandler'));
return $client;
Expand Down

0 comments on commit d6ae7eb

Please sign in to comment.