Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
29 | public function __construct($logDir, $kernelDir) |
||
30 | { |
||
31 | if (function_exists('posix_getpwuid')) { |
||
32 | $this->wwwUser = posix_getpwuid(posix_geteuid()); |
||
33 | } else { |
||
34 | $this->wwwUser = [ |
||
35 | 'name' => get_current_user(), |
||
36 | 'dir' => '-', |
||
37 | ]; |
||
38 | } |
||
39 | $this->logDir = $logDir; |
||
40 | $this->symfonyCommand = 'php ' . $kernelDir . '/console'; |
||
41 | } |
||
42 | |||
63 |