Skip to content

Reworded the explanation about the --router option #7958

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 11, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions setup/built_in_web_server.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,12 @@ Command Options

The built-in web server expects a "router" script (read about the "router"
script on `php.net`_) as an argument. Symfony already passes such a router
script when the command is executed in the ``prod`` or in the ``dev`` environment.
Use the ``--router`` option in any other environment or to use another router
script:
script when the command is executed in the ``prod`` or ``dev`` environments.
Use the ``--router`` option to use your own router script:

.. code-block:: terminal

$ php app/console server:start --env=test --router=app/config/router_test.php
$ php app/console server:start --router=app/config/my_router.php

If your application's document root differs from the standard directory layout,
you have to pass the correct location using the ``--docroot`` option:
Expand Down