refactoring. adding back pagination.

This commit is contained in:
Taylor Otwell
2011-10-04 21:43:39 -05:00
parent 34452f5f08
commit 52b68c060b
21 changed files with 551 additions and 379 deletions

View File

@@ -1,9 +1,6 @@
<?php namespace Laravel\Routing;
<?php namespace Laravel\Routing; use Closure, Laravel\Arr;
use Closure;
use Laravel\Arr;
class Route implements Destination {
class Route {
/**
* The route key, including request method and URI.
@@ -132,6 +129,16 @@ class Route implements Destination {
return array();
}
/**
* Deteremine if the route delegates to a controller.
*
* @return bool
*/
public function delegates()
{
return is_array($this->callback) and isset($this->callback['delegate']);
}
/**
* Determine if the route has a given name.
*