Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Commit

Permalink
Add more exception_function defaults for various frameworks.
Browse files Browse the repository at this point in the history
  • Loading branch information
beberlei committed May 31, 2015
1 parent 0a7bc7a commit c8b630e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/Tideways/Profiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ public static function detectFramework($framework)
switch ($framework) {
case self::FRAMEWORK_ZEND_FRAMEWORK1:
self::$defaultOptions['transaction_function'] = 'Zend_Controller_Action::dispatch';
self::$defaultOptions['exception_function'] = 'Zend_Controller_Response_Abstract::setException';
break;

case self::FRAMEWORK_ZEND_FRAMEWORK2:
Expand All @@ -157,10 +158,12 @@ public static function detectFramework($framework)

case self::FRAMEWORK_OXID:
self::$defaultOptions['transaction_function'] = 'oxView::setClassName';
self::$defaultOptions['exception_function'] = 'oxShopControl::_handleBaseException';
break;

case self::FRAMEWORK_SHOPWARE:
self::$defaultOptions['transaction_function'] = 'Enlight_Controller_Action::dispatch';
self::$defaultOptions['exception_function'] = 'Zend_Controller_Response_Abstract::setException';
break;

case self::FRAMEWORK_WORDPRESS:
Expand All @@ -169,6 +172,7 @@ public static function detectFramework($framework)

case self::FRAMEWORK_LARAVEL:
self::$defaultOptions['transaction_function'] = 'Illuminate\Routing\Controller::callAction';
self::$defaultOptions['exception_function'] = 'Illuminate\Foundation\Http\Kernel::reportException';
break;

default:
Expand Down

0 comments on commit c8b630e

Please sign in to comment.