Log error in exception handler

This commit is contained in:
Thibaud Fabre
2015-09-22 12:53:56 +02:00
parent 10ca1a87c0
commit 7f97445b51
2 changed files with 22 additions and 0 deletions

View File

@@ -267,6 +267,7 @@ class Application extends SilexApplication
$this['phraseanet.exception_handler'] = $this->share(function ($app) {
$handler = PhraseaExceptionHandler::register($app['debug']);
$handler->setTranslator($app['translator']);
$handler->setLogger($app['monolog']);
return $handler;
});