eZ/Bundle/EzPublishCoreBundle/Command/UpdateTimestampsToUTCCommand.php 1 location
|
@@ 474-488 (lines=15) @@
|
| 471 |
|
/** |
| 472 |
|
* @return string |
| 473 |
|
*/ |
| 474 |
|
private function getPhpPath() |
| 475 |
|
{ |
| 476 |
|
if ($this->phpPath) { |
| 477 |
|
return $this->phpPath; |
| 478 |
|
} |
| 479 |
|
$phpFinder = new PhpExecutableFinder(); |
| 480 |
|
$this->phpPath = $phpFinder->find(); |
| 481 |
|
if (!$this->phpPath) { |
| 482 |
|
throw new RuntimeException( |
| 483 |
|
'The php executable could not be found. It is needed for executing parallel subprocesses, so add it to your PATH environment variable and try again' |
| 484 |
|
); |
| 485 |
|
} |
| 486 |
|
|
| 487 |
|
return $this->phpPath; |
| 488 |
|
} |
| 489 |
|
|
| 490 |
|
/** |
| 491 |
|
* @param $dateString string |
eZ/Bundle/EzPublishCoreBundle/Command/ReindexCommand.php 1 location
|
@@ 475-490 (lines=16) @@
|
| 472 |
|
/** |
| 473 |
|
* @return string |
| 474 |
|
*/ |
| 475 |
|
private function getPhpPath() |
| 476 |
|
{ |
| 477 |
|
if ($this->phpPath) { |
| 478 |
|
return $this->phpPath; |
| 479 |
|
} |
| 480 |
|
|
| 481 |
|
$phpFinder = new PhpExecutableFinder(); |
| 482 |
|
$this->phpPath = $phpFinder->find(); |
| 483 |
|
if (!$this->phpPath) { |
| 484 |
|
throw new RuntimeException( |
| 485 |
|
'The php executable could not be found. It is needed for executing parallel subprocesses, so add it to your PATH environment variable and try again' |
| 486 |
|
); |
| 487 |
|
} |
| 488 |
|
|
| 489 |
|
return $this->phpPath; |
| 490 |
|
} |
| 491 |
|
|
| 492 |
|
/** |
| 493 |
|
* @return int |