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

Commit

Permalink
Update BugsnagErrorHandler.php
Browse files Browse the repository at this point in the history
  • Loading branch information
tscheepers committed Dec 10, 2014
1 parent 75588d5 commit 5866fa9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Lib/BugsnagErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,18 @@ public static function getBugsnag()
{
static $bugsnag = null;
if (null === $bugsnag) {
$bugsnag = new Bugsnag_Client(Configure::read('BugsnagCakephp.apikey'));
$bugsnag = new \Bugsnag_Client(Configure::read('BugsnagCakephp.apikey'));
$bugsnag->setBatchSending(false);
$bugsnag->setNotifier(array(
'name' => 'Bugsnag CakePHP',
'version' => '0.1.0',
'url' => 'https://github.com/Label305/bugsnag-cakephp'
));
}

return $bugsnag;
}

public static function handleError($code, $description, $file = null, $line = null, $context = null)
{
static::getBugsnag()->errorHandler($code, $description, $file, $line, $context);
Expand Down

0 comments on commit 5866fa9

Please sign in to comment.