File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,14 @@ to creating a page?
91
91
return a ``Response `` object. You'll learn more about :doc: `controllers </controller >`
92
92
in their own section, including how to return JSON responses.
93
93
94
+ .. tip ::
95
+
96
+ To create controllers faster, let Symfony generate it for you:
97
+
98
+ .. code-block :: terminal
99
+
100
+ $ php bin/console make:controller
101
+
94
102
.. _annotation-routes :
95
103
96
104
Annotation Routes
@@ -126,14 +134,6 @@ You can now add your route directly *above* the controller:
126
134
That's it! The page - ``http://localhost:8000/lucky/number `` will work exactly
127
135
like before! Annotations are the recommended way to configure routes.
128
136
129
- .. tip ::
130
-
131
- To create controllers faster, let Symfony generate it for you:
132
-
133
- .. code-block :: terminal
134
-
135
- $ php bin/console make:controller
136
-
137
137
.. _flex-quick-intro :
138
138
139
139
Auto-Installing Recipes with Symfony Flex
You can’t perform that action at this time.
0 commit comments