From 1729919e421a80a63a1c85a7bf8f19874e5402e4 Mon Sep 17 00:00:00 2001 From: Christian Neff Date: Sat, 24 Oct 2020 13:44:30 +0200 Subject: [PATCH 1/2] [Process] Update docs for PR symfony/symfony#38696 --- components/process.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/components/process.rst b/components/process.rst index 8664ddead85..565fdb3653d 100644 --- a/components/process.rst +++ b/components/process.rst @@ -526,6 +526,20 @@ absolute path of the executable PHP binary available on your server:: $phpBinaryPath = $phpBinaryFinder->find(); // $phpBinaryPath = '/usr/local/bin/php' (the result will be different on your computer) +If you want to find the PHP binary by a specific name, you can use the methods +:method:`Symfony\\Component\\Process\\PhpExecutableFinder::findByName` and +:method:`Symfony\\Component\\Process\\PhpExecutableFinder::tryNames`. + + $phpBinaryPath1 = $phpBinaryFinder->findByName('php-cli'); + $phpBinaryPath2 = $phpBinaryFinder->tryNames(['php-cli', 'php']); + +If you want to find the PHP binary by a specific version, you can use the methods +:method:`Symfony\\Component\\Process\\PhpExecutableFinder::findByVersion` and +:method:`Symfony\\Component\\Process\\PhpExecutableFinder::tryVersions`. + + $phpBinaryPath1 = $phpBinaryFinder->findByVersion('7.4'); + $phpBinaryPath2 = $phpBinaryFinder->tryVersions(['7.4', '7.3']); + Checking for TTY Support ------------------------ From db49c82c1ba7199ae92088dee835984c57b9fc87 Mon Sep 17 00:00:00 2001 From: Christian Neff Date: Sun, 25 Oct 2020 13:47:21 +0100 Subject: [PATCH 2/2] Fix wording --- components/process.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/process.rst b/components/process.rst index 565fdb3653d..4b837528e57 100644 --- a/components/process.rst +++ b/components/process.rst @@ -526,14 +526,14 @@ absolute path of the executable PHP binary available on your server:: $phpBinaryPath = $phpBinaryFinder->find(); // $phpBinaryPath = '/usr/local/bin/php' (the result will be different on your computer) -If you want to find the PHP binary by a specific name, you can use the methods +If you want to find the PHP binary with a specific name, you can use the methods :method:`Symfony\\Component\\Process\\PhpExecutableFinder::findByName` and :method:`Symfony\\Component\\Process\\PhpExecutableFinder::tryNames`. $phpBinaryPath1 = $phpBinaryFinder->findByName('php-cli'); $phpBinaryPath2 = $phpBinaryFinder->tryNames(['php-cli', 'php']); -If you want to find the PHP binary by a specific version, you can use the methods +If you want to find the PHP binary with a specific version, you can use the methods :method:`Symfony\\Component\\Process\\PhpExecutableFinder::findByVersion` and :method:`Symfony\\Component\\Process\\PhpExecutableFinder::tryVersions`. pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy