File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ the command by running the following from the root of your project.
11
11
12
12
.. code-block :: bash
13
13
14
- $ php bin /console debug:router
14
+ $ php app /console debug:router
15
15
16
16
.. versionadded :: 2.6
17
17
Prior to Symfony 2.6, this command was called ``router:debug ``.
@@ -33,14 +33,14 @@ the route name after the command:
33
33
34
34
.. code-block :: bash
35
35
36
- $ php bin /console debug:router article_show
36
+ $ php app /console debug:router article_show
37
37
38
38
Likewise, if you want to test whether a URL matches a given route, you can
39
39
use the ``router:match `` console command:
40
40
41
41
.. code-block :: bash
42
42
43
- $ php bin /console router:match /blog/my-latest-post
43
+ $ php app /console router:match /blog/my-latest-post
44
44
45
45
This command will print which route the URL matches.
46
46
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ variables. The ``escape`` function helps escape any non-JavaScript-safe values:
16
16
17
17
<script>
18
18
var route = "<?php echo $view->escape(
19
- $view['router']->generate ('blow_show', array(
19
+ $view['router']->path ('blow_show', array(
20
20
'slug' => 'my-blog-post',
21
21
)),
22
22
'js'
You can’t perform that action at this time.
0 commit comments