Skip to content

Commit

Permalink
Merge pull request #5 from chimeraphp/provide-interface-for-web-appli…
Browse files Browse the repository at this point in the history
…cations

Add interface for web applications
  • Loading branch information
lcobucci authored Jun 19, 2019
2 parents 0362220 + 9b7f2a6 commit 1913a4c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Application.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php
declare(strict_types=1);

namespace Chimera\Routing;

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

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

public function run(): void;
}

0 comments on commit 1913a4c

Please sign in to comment.