mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Adding resourceMap accessor
This commit is contained in:
parent
339259c841
commit
8864805277
1 changed files with 14 additions and 0 deletions
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue