File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1067,13 +1067,13 @@ a route+parameters back to a URL. The
1067
1067
:method: `Symfony\\ Component\\ Routing\\ Router::generate ` methods form this bi-directional
1068
1068
system. Take the ``blog_show `` example route from earlier::
1069
1069
1070
- $params = $this->('router')->match('/blog/my-blog-post');
1070
+ $params = $this->get ('router')->match('/blog/my-blog-post');
1071
1071
// array(
1072
1072
// 'slug' => 'my-blog-post',
1073
1073
// '_controller' => 'AcmeBlogBundle:Blog:show',
1074
1074
// )
1075
1075
1076
- $uri = $this->('router')->generate('blog_show', array('slug' => 'my-blog-post'));
1076
+ $uri = $this->get ('router')->generate('blog_show', array('slug' => 'my-blog-post'));
1077
1077
// /blog/my-blog-post
1078
1078
1079
1079
To generate a URL, you need to specify the name of the route (e.g. ``blog_show ``)
You can’t perform that action at this time.
0 commit comments