Cachet/config/exceptions.php

55 lines
1.7 KiB
PHP
Raw Normal View History

2015-05-25 20:06:09 +01:00
<?php
/*
* This file is part of Cachet.
*
* (c) Cachet HQ <support@cachethq.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return [
/*
|--------------------------------------------------------------------------
| Exception Displayers
|--------------------------------------------------------------------------
|
| Here are each of the exception displayers setup for your application.
|
| These displayers are sorted by priority. Note that when we are in debug
| mode, we will select the first valid displayer from the list, and when we
| are not in debug mode, we'll filter out all verbose displayers, then
| select the first valid displayer from the new list.
|
*/
'displayers' => [
'GrahamCampbell\Exceptions\Displayers\DebugDisplayer',
'GrahamCampbell\Exceptions\Displayers\HtmlDisplayer',
'GrahamCampbell\Exceptions\Displayers\JsonDisplayer',
],
/*
|--------------------------------------------------------------------------
| Displayer Filters
|--------------------------------------------------------------------------
|
| Here are each of the filters for the displayers.
|
| This allows you to apply filters to your displayers in order to work out
| which displayer to use for each exception. This includes things like
| content type negotiation.
|
*/
'filters' => [
'GrahamCampbell\Exceptions\Filters\VerboseFilter',
'GrahamCampbell\Exceptions\Filters\CanDisplayFilter',
'GrahamCampbell\Exceptions\Filters\ContentTypeFilter',
'CachetHQ\Cachet\Exceptions\Filters\ApiFilter',
2015-05-25 20:06:09 +01:00
],
];