mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-17 21:49:01 +01:00
56 lines
1.8 KiB
PHP
56 lines
1.8 KiB
PHP
<?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' => [
|
|
'CachetHQ\Cachet\Exceptions\Displayers\RedirectDisplayer',
|
|
'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',
|
|
],
|
|
|
|
];
|