Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6dfeb9a

Browse filesBrowse files
committed
Remove app_dev.php as buildin server is used
1 parent 51659f1 commit 6dfeb9a
Copy full SHA for 6dfeb9a

File tree

Expand file treeCollapse file tree

2 files changed

+15
-24
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+15
-24
lines changed

‎book/configuration.rst

Copy file name to clipboardExpand all lines: book/configuration.rst
+10-4Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ format you prefer:
8787
8888
.. note::
8989

90-
You'll learn exactly how to load each file/format in the next section
91-
`Environments`_.
90+
You'll learn exactly how to load each file/format in the next section
91+
`Environments`_.
9292

9393
Each top-level entry like ``framework`` or ``twig`` defines the configuration
9494
for a particular bundle. For example, the ``framework`` key defines the configuration
@@ -122,13 +122,13 @@ FrameworkBundle configuration:
122122

123123
.. code-block:: bash
124124
125-
$ app/console config:dump-reference FrameworkBundle
125+
$ php app/console config:dump-reference FrameworkBundle
126126
127127
The extension alias (configuration key) can also be used:
128128

129129
.. code-block:: bash
130130
131-
$ app/console config:dump-reference framework
131+
$ php app/console config:dump-reference framework
132132
133133
.. note::
134134

@@ -195,6 +195,12 @@ cached files and allow them to rebuild:
195195
be accessed directly through the browser. See the :doc:`testing chapter </book/testing>`
196196
for more details.
197197

198+
.. tip::
199+
200+
When using the ``server:run`` command to start a server,
201+
``http://localhost:8000/`` will use the dev front controller of your
202+
application.
203+
198204
.. index::
199205
single: Environments; Configuration
200206

‎book/page_creation.rst

Copy file name to clipboardExpand all lines: book/page_creation.rst
+5-20Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ Before diving into this, test it out!
6363

6464
.. tip::
6565

66-
If you setup a proper virtual host in :doc:`Apache or Nginx </cookbook/configuration/web_server_configuration>`,
66+
If you setup a proper virtual host in
67+
:doc:`Apache or Nginx </cookbook/configuration/web_server_configuration>`,
6768
replace ``http://localhost:8000`` with your host name - like
6869
``http://symfony.dev/app_dev.php/lucky/number``.
6970

@@ -80,22 +81,6 @@ and is where you build the page. The only rule is that a controller *must*
8081
return a Symfony :ref:`Response <component-http-foundation-response>` object
8182
(and you'll even learn to bend this rule eventually).
8283

83-
.. sidebar:: What's the ``app_dev.php`` in the URL?
84-
85-
Great question! By including ``app_dev.php`` in the URL, you're executing
86-
Symfony through a file - ``web/app_dev.php`` - that boots it in the ``dev``
87-
environment. This enables great debugging tools and rebuilds cached
88-
files automatically. For production, you'll use clean URLs - like
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`.
98-
9984
Creating a JSON Response
10085
~~~~~~~~~~~~~~~~~~~~~~~~
10186

@@ -132,7 +117,7 @@ Just add a second method to ``LuckyController``::
132117

133118
Try this out in your browser:
134119

135-
http://localhost:8000/app_dev.php/api/lucky/number
120+
http://localhost:8000/api/lucky/number
136121

137122
You can even shorten this with the handy :class:`Symfony\\Component\\HttpFoundation\\JsonResponse`::
138123

@@ -253,7 +238,7 @@ The best part is that you can access this value and use it in your controller::
253238

254239
Try it by going to ``/lucky/number/XX`` - replacing XX with *any* number:
255240

256-
http://localhost:8000/app_dev.php/lucky/number/7
241+
http://localhost:8000/lucky/number/7
257242

258243
You should see *7* lucky numbers printed out! You can get the value of any
259244
``{placeholder}`` in your route by adding a ``$placeholder`` argument to
@@ -410,7 +395,7 @@ to put the content into the middle of the ``base.html.twig`` layout.
410395

411396
Refresh to see your template in action!
412397

413-
http://localhost:8000/app_dev.php/lucky/number/9
398+
http://localhost:8000/lucky/number/9
414399

415400
If you view the source code, you now have a basic HTML structure thanks to
416401
``base.html.twig``.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.