Skip to content

Conversation

secondtruth
Copy link

$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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... with a specific version... ?

@OskarStark OskarStark changed the title [Process] Update docs for PR symfony/symfony#38696 [Process] PhpExecutableFinder: Add methods to find by name and version Oct 24, 2020
@xabbuh xabbuh modified the milestones: 5.2, next Nov 17, 2020
@javiereguiluz
Copy link
Member

Closing because the related code proposal symfony/symfony#38696 was closed without merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants