Moved error handler classes from Expressive namespace to ErrorHandler namespace

This commit is contained in:
Alejandro Celaya
2016-07-30 13:51:52 +02:00
parent 2a018f5415
commit e345c2bbfe
11 changed files with 15 additions and 16 deletions

View File

@@ -0,0 +1,18 @@
<?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);
}