Skip to content

Instantly share code, notes, and snippets.

@bramus
Created February 4, 2015 22:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bramus/6ec4aa2783a28ef8aa78 to your computer and use it in GitHub Desktop.
Save bramus/6ec4aa2783a28ef8aa78 to your computer and use it in GitHub Desktop.
<?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