1 | <?php |
||
12 | class ErrorHandler |
||
13 | { |
||
14 | const KEY = 'EXCEPTION'; |
||
15 | |||
16 | use Utils\CallableTrait; |
||
17 | use Utils\AttributeTrait; |
||
18 | |||
19 | /** |
||
20 | * @var callable|string The handler used |
||
21 | */ |
||
22 | private $handler; |
||
23 | |||
24 | /** |
||
25 | * @var bool Whether or not catch exceptions |
||
26 | */ |
||
27 | private $catchExceptions = false; |
||
28 | |||
29 | /** |
||
30 | * Returns the exception throwed. |
||
31 | * |
||
32 | * @param ServerRequestInterface $request |
||
33 | * |
||
34 | * @return \Exception|null |
||
35 | */ |
||
36 | public static function getException(ServerRequestInterface $request) |
||
40 | |||
41 | /** |
||
42 | * Constructor. |
||
43 | * |
||
44 | * @param callable|string|null $handler |
||
45 | */ |
||
46 | public function __construct($handler = null) |
||
50 | |||
51 | /** |
||
52 | * Configure the catchExceptions. |
||
53 | * |
||
54 | * @param bool $catch |
||
55 | * |
||
56 | * @return self |
||
57 | */ |
||
58 | public function catchExceptions($catch = true) |
||
64 | |||
65 | /** |
||
66 | * Execute the middleware. |
||
67 | * |
||
68 | * @param ServerRequestInterface $request |
||
69 | * @param ResponseInterface $response |
||
70 | * @param callable $next |
||
71 | * |
||
72 | * @return ResponseInterface |
||
73 | */ |
||
74 | public function __invoke(ServerRequestInterface $request, ResponseInterface $response, callable $next) |
||
105 | |||
106 | public static function defaultHandler(ServerRequestInterface $request, ResponseInterface $response) |
||
133 | } |
||
134 |
Scrutinizer analyzes your
composer.json
/composer.lock
file if available to determine the classes, and functions that are defined by your dependencies.It seems like the listed class was neither found in your dependencies, nor was it found in the analyzed files in your repository. If you are using some other form of dependency management, you might want to disable this analysis.