1
0
mirror of https://github.com/flarum/core.git synced 2025-07-29 04:30:56 +02:00

Replace ControllerInterface with PSR-15 interface

The custom interface already had the same signature as the
one from the standard (except for the return type hint), so
why not use that one now? :)
This commit is contained in:
Franz Liedke
2018-05-30 00:12:06 +02:00
parent e6b8ff856e
commit b3d45fd6f8
22 changed files with 86 additions and 90 deletions

View File

@@ -12,17 +12,18 @@
namespace Flarum\Install\Controller;
use Exception;
use Flarum\Http\Controller\ControllerInterface;
use Flarum\Http\SessionAuthenticator;
use Flarum\Install\Console\DefaultsDataProvider;
use Flarum\Install\Console\InstallCommand;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface as Request;
use Psr\Http\Server\RequestHandlerInterface;
use Symfony\Component\Console\Input\StringInput;
use Symfony\Component\Console\Output\StreamOutput;
use Zend\Diactoros\Response;
use Zend\Diactoros\Response\HtmlResponse;
class InstallController implements ControllerInterface
class InstallController implements RequestHandlerInterface
{
protected $command;
@@ -44,9 +45,9 @@ class InstallController implements ControllerInterface
/**
* @param Request $request
* @return \Psr\Http\Message\ResponseInterface
* @return ResponseInterface
*/
public function handle(Request $request)
public function handle(Request $request): ResponseInterface
{
$input = $request->getParsedBody();