Permalink
Browse files

Adding resourceMap accessor

  • Loading branch information...
1 parent 339259c commit 886480527746cb43adc46582c36f2fc829a0e1b1 @vesln vesln committed Jan 2, 2012
Showing with 14 additions and 0 deletions.
  1. +14 −0 lib/Cake/Routing/Router.php
@@ -174,6 +174,20 @@ public static function getNamedExpressions() {
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.
*

0 comments on commit 8864805

Please sign in to comment.