File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ a method inside of it that will be executed when someone goes to ``/lucky/number
59
59
60
60
Before diving into this, test it out!
61
61
62
- http://localhost:8000/app_dev.php/ lucky/number
62
+ http://localhost:8000/lucky/number
63
63
64
64
.. tip ::
65
65
@@ -86,9 +86,15 @@ return a Symfony :ref:`Response <component-http-foundation-response>` object
86
86
Symfony through a file - ``web/app_dev.php `` - that boots it in the ``dev ``
87
87
environment. This enables great debugging tools and rebuilds cached
88
88
files automatically. For production, you'll use clean URLs - like
89
- ``http://localhost:8000/lucky/number `` - that execute a different file -
90
- ``app.php `` - that's optimized for speed. To learn more about this and
91
- environments, see :ref: `book-page-creation-prod-cache-clear `.
89
+ ``http://symfony.dev/lucky/number `` - that execute a different file -
90
+ ``app.php `` - that's optimized for speed.
91
+
92
+ When you visit the ``http://localhost:8000 `` URL in your browser, you're
93
+ executing your Symfony application in the ``dev `` environment. To visit
94
+ your application in the ``prod `` environment, visit the ``http://localhost:8000/app.php ``
95
+ URL instead.
96
+
97
+ To learn more about this and environments, see :ref: `book-page-creation-prod-cache-clear `.
92
98
93
99
Creating a JSON Response
94
100
~~~~~~~~~~~~~~~~~~~~~~~~
You can’t perform that action at this time.
0 commit comments