diff --git a/lib/Cake/Routing/Router.php b/lib/Cake/Routing/Router.php index 04679aded..95fe11907 100644 --- a/lib/Cake/Routing/Router.php +++ b/lib/Cake/Routing/Router.php @@ -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. *