-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathProcess.php
More file actions
32 lines (27 loc) · 765 Bytes
/
Process.php
File metadata and controls
32 lines (27 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
namespace Piwik\Plugins\PerformanceAudit;
require PIWIK_INCLUDE_PATH . '/plugins/PerformanceAudit/vendor/autoload.php';
use Symfony\Component\Process\Process as BaseProcess;
class Process extends BaseProcess
{
/**
* Process constructor with own custom settings.
*
* @param array $command
* @param array|null $env
*/
public function __construct($command, $env = null)
{
$userPath = ExecutableFinder::getDefaultPath();
if (is_null($env)) {
$env = [
'PATH' => $userPath
];
} elseif (is_array($env)) {
$env += [
'PATH' => $userPath
];
}
parent::__construct($command, __DIR__, $env, null, 60);
}
}