Permalink
Browse files

Use new exception handling settings

- Configuration-driven, instead of event-driven
  • Loading branch information...
1 parent 2d6fca3 commit 56d0c4244c061961b70c02a5b2bc144f8a6cbc67 @weierophinney committed Feb 10, 2013
Showing with 29 additions and 21 deletions.
  1. +1 −0 composer.json
  2. +25 −18 composer.lock
  3. +3 −0 config/autoload/global.php
  4. +0 −3 module/Application/Module.php
View
@@ -21,6 +21,7 @@
}
],
"homepage": "http://conference.phpbenelux.eu/2013/sessions/",
+ "minimum-stability": "dev",
"require": {
"php": ">=5.3.3",
"zendframework/zendframework": "2.1.*",
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -24,4 +24,7 @@
'Zend\Db\Adapter\Adapter' => 'Zend\Db\Adapter\AdapterServiceFactory',
),
),
+ 'view_manager' => array(
+ 'display_exceptions' => false, // set to true in a local file in order to debug
+ ),
);
@@ -14,9 +14,6 @@ public function onBootstrap(MvcEvent $e)
$moduleRouteListener = new ModuleRouteListener();
$moduleRouteListener->attach($eventManager);
-
- $services = $e->getApplication()->getServiceManager();
- $services->get('PhlyRestfully\JsonRenderer')->setDisplayExceptions(true);
}
public function getConfig()

0 comments on commit 56d0c42

Please sign in to comment.