Skip to content

Commit 1485cba

Browse files
zdenekdrahosfabpot
authored andcommitted
Mention generating absolute urls in UPGRADE files and CHANGELOG
1 parent 4cbc81a commit 1485cba

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,22 @@ CHANGELOG
77
* allowed specifying a directory to recursively load all routing configuration files it contains
88
* Added ObjectRouteLoader and ServiceRouteLoader that allow routes to be loaded
99
by calling a method on an object/service.
10+
* [DEPRECATION] Deprecated the hardcoded value for the `$referenceType` argument of the `UrlGeneratorInterface::generate` method.
11+
Use the constants defined in the `UrlGeneratorInterface` instead.
12+
13+
Before:
14+
15+
```php
16+
$router->generate('blog_show', array('slug' => 'my-blog-post'), true);
17+
```
18+
19+
After:
20+
21+
```php
22+
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
23+
24+
$router->generate('blog_show', array('slug' => 'my-blog-post'), UrlGeneratorInterface::ABSOLUTE_URL);
25+
```
1026

1127
2.5.0
1228
-----

0 commit comments

Comments
 (0)