Update RequestInterface to inherit from RouteableInterface
This commit is contained in:
parent
e3e98377c3
commit
a756adf933
|
|
@ -2,14 +2,8 @@
|
|||
|
||||
namespace pjdietz\WellRESTed\Interfaces;
|
||||
|
||||
interface RoutableInterface
|
||||
interface RoutableInterface extends RequestInterface
|
||||
{
|
||||
/** @return string HTTP request method (e.g., GET, POST, PUT). */
|
||||
public function getMethod();
|
||||
|
||||
/** @return string The path component of a URI for this Routeable */
|
||||
public function getPath();
|
||||
|
||||
/** @return int The number of times a router has dispatched this Routable */
|
||||
public function getRouteDepth();
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ use pjdietz\WellRESTed\Interfaces\RoutableInterface;
|
|||
* @property array query Associative array of query parameters
|
||||
* @property array uri Full URI (protocol, hostname, path, etc.)
|
||||
*/
|
||||
class Request extends Message implements RequestInterface, RoutableInterface
|
||||
class Request extends Message implements RoutableInterface
|
||||
{
|
||||
/**
|
||||
* Singleton instance derived from reading info from Apache.
|
||||
|
|
|
|||
Loading…
Reference in New Issue