/
ErrorHandlerConstants.php
111 lines (98 loc) · 3.09 KB
/
ErrorHandlerConstants.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?php
/**
* Copyright © 2016-present Spryker Systems GmbH. All rights reserved.
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
*/
namespace Spryker\Shared\ErrorHandler;
/**
* Declares global environment configuration keys. Do not use it for other class constants.
*/
interface ErrorHandlerConstants
{
/**
* Specification:
* - Defines if the pretty error handler is enabled.
* - Should only be enabled in development mode.
*
* @api
*/
public const IS_PRETTY_ERROR_HANDLER_ENABLED = 'ERROR_HANDLER:IS_PRETTY_ERROR_HANDLER_ENABLED';
/**
* Specification:
* - Absolute path to an HTML file which contains the error page for Zed. E.g. /var/www/public/Zed/error-page.html
*
* @api
*/
public const ZED_ERROR_PAGE = 'ZED_ERROR_PAGE';
/**
* Specification:
* - Absolute path to an HTML file which contains the error page for Yves. E.g. /var/www/public/Yves/error-page.html
*
* @api
*/
public const YVES_ERROR_PAGE = 'YVES_ERROR_PAGE';
/**
* Specification:
* - Class name of class which implements ErrorRendererInterface and should be used to render a given exception.
*
* @api
*/
public const ERROR_RENDERER = 'ERROR_RENDERER';
/**
* Specification:
* - Sets which PHP error levels are reported. It is not advised to modify this value.
*
* @api
*/
public const ERROR_LEVEL = 'ERROR_LEVEL';
/**
* Specification:
* - Sets which PHP error levels are not transformed into exceptions but logged only.
* This can be useful for production systems to not trigger exceptions for deprecations:
* $config[ErrorHandlerConstants::ERROR_LEVEL_LOG_ONLY] = E_DEPRECATED | E_USER_DEPRECATED;
*
* @api
*/
public const ERROR_LEVEL_LOG_ONLY = 'ERROR_LEVEL_LOG_ONLY';
/**
* Specification:
* - Pattern for the link from the browser to the IDE.
* - The default `phpstorm://open?file=%s&line=%s` works for most OS.
*
* @api
*/
public const PATTERN_IDE_LINK = 'PATTERN_IDE_LINK';
/**
* Specification:
* - Path to the project on local machine e.g. `/Users/foo/www/spryker/project`
* - This is used to replace the path from server (/data/shop/development/current) with the user path.
* - Enables file opening in IDE.
*
* @api
*/
public const USER_BASE_PATH = 'USER_BASE_PATH';
/**
* Specification:
* - Path to the project on virtual machine, defaults to `/data/shop/development/current`
* - This will be replaced with the user path.
*
* @api
*/
public const SERVER_BASE_PATH = 'SERVER_BASE_PATH';
/**
* Specification:
* - When using the USER_BASE_PATH to open files in IDE, some IDEs require AJAX calls for it to work.
*
* @api
*/
public const AS_AJAX = 'AS_AJAX';
/**
* Specification:
* - Set php.ini config 'display_errors'
* - type bool
* - default false
*
* @api
*/
public const DISPLAY_ERRORS = 'DISPLAY_ERRORS';
}