File tree 2 files changed +11
-1
lines changed
Bundle/FrameworkBundle/Routing
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ private function resolveParameters(RouteCollection $collection)
94
94
foreach ($ route ->getRequirements () as $ name => $ value ) {
95
95
$ route ->setRequirement ($ name , $ this ->resolveString ($ value ));
96
96
}
97
-
97
+ $ collection -> setPrefix ( ' / ' . ltrim ( $ this -> resolveString ( $ collection -> getPrefix ()), ' / ' ));
98
98
$ route ->setPattern ($ this ->resolveString ($ route ->getPattern ()));
99
99
}
100
100
}
Original file line number Diff line number Diff line change @@ -259,6 +259,16 @@ public function getPrefix()
259
259
return $ this ->prefix ;
260
260
}
261
261
262
+ /**
263
+ * Sets the prefix (used to resolve placeholders).
264
+ *
265
+ * @param string The prefix
266
+ */
267
+ public function setPrefix ($ prefix )
268
+ {
269
+ $ this ->prefix = $ prefix ;
270
+ }
271
+
262
272
/**
263
273
* Returns an array of resources loaded to build this collection.
264
274
*
You can’t perform that action at this time.
0 commit comments