19 lines
294 B
PHP
19 lines
294 B
PHP
<?php
|
|
|
|
namespace Laravel\Horizon;
|
|
|
|
class PhpBinary
|
|
{
|
|
/**
|
|
* Get the path to the PHP executable.
|
|
*
|
|
* @return string
|
|
*/
|
|
public static function path()
|
|
{
|
|
$escape = '\\' === DIRECTORY_SEPARATOR ? '"' : '\'';
|
|
|
|
return $escape.PHP_BINARY.$escape;
|
|
}
|
|
}
|