0
下面是我在快樂的Zend framwork實施Bugsnag 2Zend框架2 bugsnag整合
public function onBootstrap(MvcEvent $e)
{
$eventManager = $e->getApplication()->getEventManager();
$moduleRouteListener = new ModuleRouteListener();
$eventManager->attach(
'dispatch.error', function($event) {
$error = $event->getError();
if ($error == 'error-exception') {
$exception = $event->getParam('exception');
$bugsnag = Bugsnag\Client::make("MYKEY");
Bugsnag\Handler::register($bugsnag);
$bugsnag->notifyException($exception);
}
}
);
$moduleRouteListener->attach($eventManager);
}
,但它不工作,該錯誤不處理 我在做什麼錯。