init
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace Illuminate\Support\Process;
|
||||
|
||||
use Symfony\Component\Process\ExecutableFinder;
|
||||
use Symfony\Component\Process\PhpExecutableFinder as SymfonyPhpExecutableFinder;
|
||||
|
||||
class PhpExecutableFinder extends SymfonyPhpExecutableFinder
|
||||
{
|
||||
/**
|
||||
* Finds The PHP executable.
|
||||
*/
|
||||
#[\Override]
|
||||
public function find(bool $includeArgs = true): string|false
|
||||
{
|
||||
if ($herdPath = getenv('HERD_HOME')) {
|
||||
return (new ExecutableFinder)->find('php', false, [implode(DIRECTORY_SEPARATOR, [$herdPath, 'bin'])]);
|
||||
}
|
||||
|
||||
return parent::find($includeArgs);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user