move 'is' method to the str class where it belongs.

This commit is contained in:
Taylor Otwell
2012-04-12 22:54:50 -05:00
parent 0c8c6714f4
commit 34cb9a00f4
4 changed files with 47 additions and 18 deletions

View File

@@ -1,6 +1,7 @@
<?php namespace Laravel\Routing;
use Closure;
use Laravel\Str;
use Laravel\URI;
use Laravel\Bundle;
use Laravel\Request;
@@ -198,7 +199,7 @@ class Route {
// if they match we'll attach the filter.
foreach (Filter::$patterns as $pattern => $filter)
{
if (URI::is($pattern, $this->uri))
if (Str::is($pattern, $this->uri))
{
$filters[] = $filter;
}