mirror of
https://github.com/shlinkio/shlink.git
synced 2026-02-28 12:13:13 +08:00
19 lines
462 B
PHP
19 lines
462 B
PHP
<?php
|
|
namespace Shlinkio\Shlink\Common\ErrorHandler;
|
|
|
|
use Psr\Http\Message\ServerRequestInterface as Request;
|
|
use Psr\Http\Message\ResponseInterface as Response;
|
|
|
|
interface ErrorHandlerInterface
|
|
{
|
|
/**
|
|
* Final handler for an application.
|
|
*
|
|
* @param Request $request
|
|
* @param Response $response
|
|
* @param null|mixed $err
|
|
* @return Response
|
|
*/
|
|
public function __invoke(Request $request, Response $response, $err = null);
|
|
}
|