Commit 4b88391c authored by webchick's avatar webchick

Issue #1855204 by g.oechsler, effulgentsia: Fixed RouteBuilder needs to...

Issue #1855204 by g.oechsler, effulgentsia: Fixed RouteBuilder needs to respect route options set in yaml file.
parent 3eba53c3
......@@ -87,7 +87,8 @@ public function rebuild() {
foreach ($routes as $name => $route_info) {
$defaults = isset($route_info['defaults']) ? $route_info['defaults'] : array();
$requirements = isset($route_info['requirements']) ? $route_info['requirements'] : array();
$route = new Route($route_info['pattern'], $defaults, $requirements);
$options = isset($route_info['options']) ? $route_info['options'] : array();
$route = new Route($route_info['pattern'], $defaults, $requirements, $options);
$collection->add($name, $route);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment