Adding resourceMap accessor

This commit is contained in:
Veselin Todorov 2012-01-02 13:53:21 +02:00
parent 339259c841
commit 8864805277

View file

@ -174,6 +174,20 @@ class Router {
return self::$_namedExpressions;
}
/**
* Resource map getter & setter.
*
* @param array $resourceMap Resource map
* @return mixed
* @see Router::$_resourceMap
*/
public static function resourceMap($resourceMap = null) {
if ($resourceMap === null) {
return self::$_resourceMap;
}
self::$_resourceMap = $resourceMap;
}
/**
* Connects a new Route in the router.
*