Created
February 4, 2015 22:03
-
-
Save bramus/6ec4aa2783a28ef8aa78 to your computer and use it in GitHub Desktop.
This file contains 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\Router; | |
/** | |
* Describes a router instance | |
* | |
* ... | |
*/ | |
interface RouterInterface | |
{ | |
public function match($method, $route, callable $cb); | |
public function get($route, callable $cb); | |
public function post($route, callable $cb); | |
public function put($route, callable $cb); | |
public function patch($route, callable $cb); | |
public function delete($route, callable $cb); | |
public function options($route, callable $cb); | |
public function mount($baseRoute, callable $cb); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment