Skip to content
Permalink
Browse files

make all router methods use static instead of class name.

  • Loading branch information...
skie committed Jul 16, 2016
1 parent c4fd8f7 commit f467c4795e40a60c4204d5bb50542e073a37dd80
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/Routing/Router.php
@@ -721,7 +721,7 @@ public static function reverse($params, $full = false)
$params['?'] = $url;
}
return Router::url($params, $full);
return static::url($params, $full);
}
/**
@@ -736,12 +736,12 @@ public static function reverse($params, $full = false)
public static function normalize($url = '/')
{
if (is_array($url)) {
$url = Router::url($url);
$url = static::url($url);
}
if (preg_match('/^[a-z\-]+:\/\//', $url)) {
return $url;
}
$request = Router::getRequest();
$request = static::getRequest();
if (!empty($request->base) && stristr($url, $request->base)) {
$url = preg_replace('/^' . preg_quote($request->base, '/') . '/', '', $url, 1);

0 comments on commit f467c47

Please sign in to comment.
You can’t perform that action at this time.