Last active
May 22, 2016 11:08
-
-
Save frederikbosch/20b37420d39e51872e519e1d1e113f0b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Psr\Http\Middleware; | |
use Psr\Http\Message\RequestInterface; | |
use Psr\Http\Message\ResponseInterface; | |
interface AfterMiddlewareInterface | |
{ | |
public function after(RequestInterface $request, ResponseInterface $response, callable $next); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Psr\Http\Middleware; | |
use Psr\Http\Message\RequestInterface; | |
use Psr\Http\Message\ResponseInterface; | |
interface AroundMiddlewareInterface | |
{ | |
public function around(HandlerInterface $handler) : HandlerInterface; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Psr\Http\Middleware; | |
use Psr\Http\Message\RequestInterface; | |
interface BeforeMiddlewareInterface | |
{ | |
public function before(RequestInterface $request, callable $next); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Psr\Http\Middleware; | |
use Psr\Http\Message\RequestInterface; | |
use Psr\Http\Message\ResponseInterface; | |
interface HandlerInterface | |
{ | |
public function handle(RequestInterface $request) : ResponseInterface; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment