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

@@ -3,7 +3,7 @@
use Closure;
use Laravel\Arr;
class Route {
class Route implements Destination {
/**
* The route key, including request method and URI.
@@ -126,9 +126,7 @@ class Route {
{
if (is_array($this->callback) and isset($this->callback[$name]))
{
$filters = $this->callback[$name];
return (is_string($filters)) ? explode('|', $filters) : $filters;
return $this->callback[$name];
}
return array();