moved routing classes into system namespace.

This commit is contained in:
Taylor Otwell
2011-07-31 13:14:39 -05:00
parent ce96fb6717
commit 83ace2de68
5 changed files with 10 additions and 10 deletions

View File

@@ -71,7 +71,7 @@ class URL {
*/
public static function to_route($name, $parameters = array(), $https = false)
{
if ( ! is_null($route = Route\Finder::find($name)))
if ( ! is_null($route = Route_Finder::find($name)))
{
$uris = explode(', ', key($route));
@@ -109,7 +109,7 @@ class URL {
*/
public static function slug($title, $separator = '-')
{
$title = html_entity_decode(Str::ascii($title), ENT_QUOTES, Config::get('application.encoding'));
$title = Str::ascii($title);
// Remove all characters that are not the separator, letters, numbers, or whitespace.
$title = preg_replace('![^'.preg_quote($separator).'\pL\pN\s]+!u', '', Str::lower($title));