Created
November 23, 2012 10:10
-
-
Save dbu/4134887 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// match method becomes | |
public function matchRequest(Request $request) | |
{ | |
$defaults = $this->nestedMatcher->matchRequest($request); | |
foreach ($this->enhancers as $enhancer) { | |
$defaults = $enhancer->enhance($defaults, $request); | |
} | |
return $defaults; | |
} | |
interface RouteEnhancerInterface | |
{ | |
/** | |
* Change the defaults based on rules. | |
* | |
* @return array the modified defaults | |
*/ | |
public function enhance(array $defaults, Request $request); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment