8000 [Process] Add Laravel Herd php detection path · symfony/symfony@93ca4e9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 93ca4e9

Browse files
mpociotnicolas-grekas
authored andcommitted
[Process] Add Laravel Herd php detection path
1 parent 0ce31a5 commit 93ca4e9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Component/Process/PhpExecutableFinder.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ public function find(bool $includeArgs = true): string|false
8686
$dirs[] = 'C:\xampp\php\\';
8787
}
8888

89+
if ($herdPath = getenv('HERD_HOME')) {
90+
$dirs[] = $herdPath.\DIRECTORY_SEPARATOR.'bin';
91+
}
92+
8993
return $this->executableFinder->find('php', false, $dirs);
9094
}
9195

0 commit comments

Comments
 (0)
0