some routing enhancements - still a work in progress.

This commit is contained in:
Taylor Otwell
2011-10-02 23:28:30 -05:00
parent 7be960fb6f
commit eb956cc89d
5 changed files with 94 additions and 62 deletions

View File

@@ -2,6 +2,40 @@
use Laravel\Request;
interface Destination {
/**
* Get an array of filter names defined for the destination.
*
* @param string $name
* @return array
*/
public function filters($name);
}
class Delegate {
/**
* The destination of the route delegate.
*
* @var string
*/
public $destination;
/**
* Create a new route delegate instance.
*
* @param string $destination
* @return void
*/
public function __construct($destination)
{
$this->destination = $destination;
}
}
class Router {
/**