| Total Complexity | 3 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | class ProcessFactory |
||
| 24 | { |
||
| 25 | const PROCESS_DEFAULT_TIMEOUT = 300; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Creates a process from command line. |
||
| 29 | * |
||
| 30 | * @param string $commandLine Command line of the process |
||
| 31 | * @param int $timeout Symfony process timeout |
||
| 32 | * |
||
| 33 | * @return Process |
||
| 34 | */ |
||
| 35 | 12 | public function createProcess($commandLine, $timeout = self::PROCESS_DEFAULT_TIMEOUT) |
|
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Returns whether the new syntax to build Symfony Process instances from a command line should be used. |
||
| 46 | * |
||
| 47 | * @see https://github.com/symfony/symfony/pull/27821 |
||
| 48 | * |
||
| 49 | * @return bool |
||
| 50 | */ |
||
| 51 | 12 | private function useNewSyntax() |
|
| 56 |