From 10e6500c091105c7845225334b9c9b8c45bcdd1f Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Mon, 6 Jan 2020 11:15:29 +0100 Subject: [PATCH] Remove recommandation --- setup/symfony_server.rst | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/setup/symfony_server.rst b/setup/symfony_server.rst index b1664ddb2f2..2e38b29884d 100644 --- a/setup/symfony_server.rst +++ b/setup/symfony_server.rst @@ -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 @@ -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 ------------------