Skip to content

Commit 56b64c0

Browse files
ahinkleweaverryan
authored andcommitted
Move the controller tip out of the annotation routes.
1 parent ddb7572 commit 56b64c0

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

page_creation.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,14 @@ to creating a page?
9191
return a ``Response`` object. You'll learn more about :doc:`controllers </controller>`
9292
in their own section, including how to return JSON responses.
9393

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+
94102
.. _annotation-routes:
95103

96104
Annotation Routes
@@ -126,14 +134,6 @@ You can now add your route directly *above* the controller:
126134
That's it! The page - ``http://localhost:8000/lucky/number`` will work exactly
127135
like before! Annotations are the recommended way to configure routes.
128136

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-
137137
.. _flex-quick-intro:
138138

139139
Auto-Installing Recipes with Symfony Flex

0 commit comments

Comments
 (0)