We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 60d53d6 + ed175c5 commit 098fd6fCopy full SHA for 098fd6f
src/Event/ErrorEvent.php
@@ -18,9 +18,11 @@ class ErrorEvent extends Event
18
* @param Exception $error
19
* @param RequestInterface $request
20
*/
21
- public function __construct($error, $request)
+ public function __construct($error, $request, array $context = array())
22
{
23
- parent::__construct(array('error' => $error, 'request' => $request));
+ $context['error'] = $error;
24
+ $context['request'] = $request;
25
+ parent::__construct($context);
26
}
27
28
/**
0 commit comments