File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ CHANGELOG
55-----
66
77 * The ` app ` global variable is now injected even when using the twig service directly.
8+ * Added an optional parameter to the ` path ` and ` url ` function which allows to generate
9+ relative paths (e.g. "../parent-file") and scheme-relative URLs (e.g. "//example.com/dir/file").
810
9112.1.0
1012-----
Original file line number Diff line number Diff line change @@ -79,6 +79,12 @@ CHANGELOG
7979 pass the requirements (otherwise it would break your link anyway).
8080 * There is no restriction on the route name anymore. So non-alphanumeric characters
8181 are now also allowed.
82+ * Added possibility to generate relative paths and network paths in the UrlGenerator, e.g.
83+ "../parent-file" and "//example.com/dir/file". The third parameter in
84+ ` UrlGeneratorInterface::generate($name, $parameters = array(), $referenceType = self::ABSOLUTE_PATH) `
85+ now accepts more values and you should use the constants defined in ` UrlGeneratorInterface ` for
86+ claritiy. The old method calls with a Boolean parameter will continue to work because they
87+ equal the signature using the constants.
8288
83892.1.0
8490-----
You can’t perform that action at this time.
0 commit comments