Skip to content

Commit d63ed0f

Browse files
committed
ErrorListenerInterface
1 parent 0f022b6 commit d63ed0f

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/ErrorListenerInterface.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace HttpSoft\ErrorHandler;
6+
7+
use Psr\Http\Message\ServerRequestInterface;
8+
use Throwable;
9+
10+
interface ErrorListenerInterface
11+
{
12+
/**
13+
* Trigger error listener.
14+
*
15+
* @param Throwable $error
16+
* @param ServerRequestInterface $request
17+
*/
18+
public function trigger(Throwable $error, ServerRequestInterface $request): void;
19+
}

0 commit comments

Comments
 (0)