cspray/SprayFire — Issue #21: Uri Interface
Author: cspray
Created: 2011-12-24 22:00:34+00:00
State: open
Labels: roadmap

Create a `Uri` interface that requires the following contract from implementing classes:

- A `__construct()` that requires a `string` passed that represents the path for the requested URL. SprayFire implementations should pass `$_SERVER['REQUEST_URI']` to this class constructor.
- A `getOriginalUri()` method that returns the unaltered string passed in the constructor.
- A `getController()` method that returns the controller fragment of the passed URI string or a constant flag that signifies the default configuration controller should be used.
- A `getAction()` method that returns the action fragment of the passed URI string or a constant flag that signifies the default configuration action should be used.
- A `getParameters()` method that should **always** return an array, empty or otherwise