1
0
mirror of https://github.com/flarum/core.git synced 2025-07-23 01:31:40 +02:00

Error handling: Rename renderers to formatters

Refs #1641.
This commit is contained in:
Franz Liedke
2019-08-20 17:48:09 +02:00
parent 8a74becdff
commit be5c1f6033
10 changed files with 19 additions and 19 deletions

View File

@@ -11,7 +11,7 @@
namespace Flarum\Http\Middleware;
use Flarum\Foundation\ErrorHandling\Formatter;
use Flarum\Foundation\ErrorHandling\HttpFormatter;
use Flarum\Foundation\ErrorHandling\Registry;
use Psr\Http\Message\ResponseInterface as Response;
use Psr\Http\Message\ServerRequestInterface as Request;
@@ -27,7 +27,7 @@ class HandleErrors implements Middleware
protected $registry;
/**
* @var Formatter
* @var HttpFormatter
*/
protected $formatter;
@@ -36,7 +36,7 @@ class HandleErrors implements Middleware
*/
protected $reporters;
public function __construct(Registry $registry, Formatter $formatter, array $reporters)
public function __construct(Registry $registry, HttpFormatter $formatter, array $reporters)
{
$this->registry = $registry;
$this->formatter = $formatter;