Refactor error handling internally to follow RFC7807 (#362)

* Refactor error handling internally to follow RFC7807

* style fixes
This commit is contained in:
Nabeel S
2019-08-21 08:17:44 -04:00
committed by GitHub
parent 91a5eb535d
commit 182aabf426
25 changed files with 692 additions and 144 deletions

View File

@@ -15,6 +15,16 @@ return [
*/
'installed' => env('PHPVMS_INSTALLED', false),
/*
* Avatar resize settings
* feel free to edit the following lines.
* Both parameters are in px.
*/
'avatar' => [
'width' => '200',
'height' => '200',
],
/*
* Where to redirect after logging in
*/
@@ -79,12 +89,8 @@ return [
],
/*
* Avatar resize settings
* feel free to edit the following lines.
* Both parameters are in px.
* DO NOT CHANGE THIS. This is used to map error codes to the approriate
* RFC 7807 type, which can be used as a machine-readable error code/map
*/
'avatar' => [
'width' => '200',
'height' => '200',
],
'error_root' => 'https://phpvms.net/errors',
];