1
0
mirror of https://gitnet.fr/deblan/gist.git synced 2021-08-14 08:30:49 +02:00
GIST/app/bootstrap.php.d/20-error.php
Simon Vieille 44d90ab942 indent
2015-05-05 22:06:02 +02:00

13 lines
256 B
PHP

<?php
$app->error(function (Exception $e, $code) use ($app) {
return $app['twig']->render(
'error.html.twig',
array(
'code' => $code,
'name' => get_class($e),
'exception' => $e,
)
);
});