Skip to content

Commit

Permalink
Make application a request handler
Browse files Browse the repository at this point in the history
Promoting better interoperability with other libraries.
  • Loading branch information
lcobucci committed Jun 19, 2019
1 parent 1913a4c commit c6f8cb0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@

namespace Chimera\Routing;

use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\RequestHandlerInterface;

interface Application
interface Application extends RequestHandlerInterface
{
public function handle(ServerRequestInterface $request): ResponseInterface;

public function run(): void;
}

0 comments on commit c6f8cb0

Please sign in to comment.