some routing enhancements - still a work in progress.
This commit is contained in:
@@ -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 {
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user