Deal with default param patterns more effectively
This commit is contained in:
parent
11f2a3d551
commit
a4240db48f
@ -59,7 +59,7 @@ class URLMapper
|
|||||||
protected $variables = array();
|
protected $variables = array();
|
||||||
protected $reverse = array();
|
protected $reverse = array();
|
||||||
|
|
||||||
function connect($path, $args, $paramPatterns=null)
|
function connect($path, $args, $paramPatterns=array())
|
||||||
{
|
{
|
||||||
if (!array_key_exists(self::ACTION, $args)) {
|
if (!array_key_exists(self::ACTION, $args)) {
|
||||||
throw new Exception(sprintf("Can't connect %s; path has no action.", $path));
|
throw new Exception(sprintf("Can't connect %s; path has no action.", $path));
|
||||||
|
Loading…
Reference in New Issue
Block a user