added more dependency injection to route loader and finder.

This commit is contained in:
Taylor Otwell
2011-07-31 22:11:49 -05:00
parent 0af326b636
commit f9f168eacb
3 changed files with 48 additions and 53 deletions

View File

@@ -71,7 +71,7 @@ class URL {
*/
public static function to_route($name, $parameters = array(), $https = false)
{
if ( ! is_null($route = Routing\Finder::find($name)))
if ( ! is_null($route = Routing\Finder::find($name, Routing\Loader::everything())))
{
$uris = explode(', ', key($route));