File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,22 @@ CHANGELOG
7
7
* allowed specifying a directory to recursively load all routing configuration files it contains
8
8
* Added ObjectRouteLoader and ServiceRouteLoader that allow routes to be loaded
9
9
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
+ ```
10
26
11
27
2.5.0
12
28
-----
You can’t perform that action at this time.
0 commit comments