8000 added changelog entries · symfony/symfony@6703fb5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6703fb5

Browse files
committed
added changelog entries
1 parent 1997e2e commit 6703fb5

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/Symfony/Bridge/Twig/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

911
2.1.0
1012
-----

src/Symfony/Component/Routing/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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

8389
2.1.0
8490
-----

0 commit comments

Comments
 (0)
0