From 886480527746cb43adc46582c36f2fc829a0e1b1 Mon Sep 17 00:00:00 2001 From: Veselin Todorov Date: Mon, 2 Jan 2012 13:53:21 +0200 Subject: [PATCH] Adding resourceMap accessor --- lib/Cake/Routing/Router.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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. *