Skip to content

Commit

Permalink
Minor comments only. Added more explanation of $defaults parameter to…
Browse files Browse the repository at this point in the history
… Router::connect(). Trying to clarify how it relates to the routing destination and the template string tokens.
  • Loading branch information
sgpinkus committed Feb 6, 2014
1 parent ae3c791 commit 9691e54
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Cake/Routing/Router.php
Expand Up @@ -269,6 +269,9 @@ public static function resourceMap($resourceMap = null) {
*
* Shows connecting a route with custom route parameters as well as providing patterns for those parameters.
* Patterns for routing parameters do not need capturing groups, as one will be added for each route params.
*
* $defaults is merged with the results of parsing the request URL to form the final routing destination and its
* parameters. This destination is expressed as an associative array by Router. See the output of {@link parse()}.
*
* $options offers four 'special' keys. `pass`, `named`, `persist` and `routeClass`
* have special meaning in the $options array.
Expand Down Expand Up @@ -304,6 +307,7 @@ public static function resourceMap($resourceMap = null) {
* shifted into the passed arguments, supplying patterns for routing parameters and supplying the name of a
* custom routing class.
* @see routes
* @see parse().
* @return array Array of routes
* @throws RouterException
*/
Expand Down

0 comments on commit 9691e54

Please sign in to comment.