Skip to content

Remove recommendation #12892

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
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
16 changes: 1 addition & 15 deletions setup/symfony_server.rst
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ to override:
Running Commands with Different PHP Versions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

When running different PHP versions it's useful to use the main ``symfony``
When running different PHP versions, it is useful to use the main ``symfony``
command as a wrapper for the ``php`` command. This allows you to always select
the most appropriate PHP version according to the project which is running the
commands. It also loads the env vars automatically, which is important when
Expand All @@ -149,20 +149,6 @@ running non-Symfony commands:
# (or the default PHP version if the project didn't select one)
$ symfony php -r "..."

If you are using this wrapper frequently, consider aliasing the ``php`` command
to it:

.. code-block:: terminal

$ cd ~/.symfony/bin
$ cp symfony php
# now you can run "php ..." and the "symfony" command will be executed instead

# other PHP commands can be wrapped too using this trick
$ cp symfony php-config
$ cp symfony pear
$ cp symfony pecl

Local Domain Names
------------------

Expand Down