public static function createClient($options = array()) { $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')); $bugsnag->setReleaseStage(Configure::read('BugsnagCakephp.releaseStage')); $bugsnag->setNotifyReleaseStages(Configure::read('BugsnagCakephp.notifyReleaseStages')); $bugsnag->setType("CakePHP"); $filters = Configure::read('BugsnagCakephp.filters'); if (!empty($filters)) { $bugsnag->setFilters($filters); } return $bugsnag; }
/** * Set the type of application executing the code. This is usually used to * represent if you are running plain PHP code "php", via a framework, * eg "laravel", or executing through delayed worker code, eg "resque". * * @param String $type the current type * @static */ public static function setType($type) { return \Bugsnag_Client::setType($type); }