|
@@ -158,6 +158,10 @@ discard block |
|
|
block discarded – undo |
|
158
|
158
|
return [ "path" => $path,"parameters" => $parameters ]; |
|
159
|
159
|
} |
|
160
|
160
|
|
|
|
161
|
+ /** |
|
|
162
|
+ * @param integer $index |
|
|
163
|
+ * @param string $paramMatch |
|
|
164
|
+ */ |
|
161
|
165
|
private static function scanParam(&$parameters, &$hasOptional, $matches, $index, $paramMatch, $find, &$path, $requirement) { |
|
162
|
166
|
$toReplace=true; |
|
163
|
167
|
if (isset($matches[1][$index])) { |
|
@@ -178,6 +182,9 @@ discard block |
|
|
block discarded – undo |
|
178
|
182
|
} |
|
179
|
183
|
} |
|
180
|
184
|
|
|
|
185
|
+ /** |
|
|
186
|
+ * @param string $path |
|
|
187
|
+ */ |
|
181
|
188
|
private static function createRouteMethod(&$result, $controllerClass, $path, $httpMethods, $method, $parameters, $name, $cache, $duration,$priority) { |
|
182
|
189
|
foreach ( $httpMethods as $httpMethod ) { |
|
183
|
190
|
$result[$path][$httpMethod]=[ "controller" => $controllerClass,"action" => $method,"parameters" => $parameters,"name" => $name,"cache" => $cache,"duration" => $duration,"priority"=>$priority ]; |
Please login to merge, or discard this patch.