1CHANGELOG 2========= 3 45.2.0 5----- 6 7 * added `Process::setOptions()` to set `Process` specific options 8 * added option `create_new_console` to allow a subprocess to continue 9 to run after the main script exited, both on Linux and on Windows 10 115.1.0 12----- 13 14 * added `Process::getStartTime()` to retrieve the start time of the process as float 15 165.0.0 17----- 18 19 * removed `Process::inheritEnvironmentVariables()` 20 * removed `PhpProcess::setPhpBinary()` 21 * `Process` must be instantiated with a command array, use `Process::fromShellCommandline()` when the command should be parsed by the shell 22 * removed `Process::setCommandLine()` 23 244.4.0 25----- 26 27 * deprecated `Process::inheritEnvironmentVariables()`: env variables are always inherited. 28 * added `Process::getLastOutputTime()` method 29 304.2.0 31----- 32 33 * added the `Process::fromShellCommandline()` to run commands in a shell wrapper 34 * deprecated passing a command as string when creating a `Process` instance 35 * deprecated the `Process::setCommandline()` and the `PhpProcess::setPhpBinary()` methods 36 * added the `Process::waitUntil()` method to wait for the process only for a 37 specific output, then continue the normal execution of your application 38 394.1.0 40----- 41 42 * added the `Process::isTtySupported()` method that allows to check for TTY support 43 * made `PhpExecutableFinder` look for the `PHP_BINARY` env var when searching the php binary 44 * added the `ProcessSignaledException` class to properly catch signaled process errors 45 464.0.0 47----- 48 49 * environment variables will always be inherited 50 * added a second `array $env = []` argument to the `start()`, `run()`, 51 `mustRun()`, and `restart()` methods of the `Process` class 52 * added a second `array $env = []` argument to the `start()` method of the 53 `PhpProcess` class 54 * the `ProcessUtils::escapeArgument()` method has been removed 55 * the `areEnvironmentVariablesInherited()`, `getOptions()`, and `setOptions()` 56 methods of the `Process` class have been removed 57 * support for passing `proc_open()` options has been removed 58 * removed the `ProcessBuilder` class, use the `Process` class instead 59 * removed the `getEnhanceWindowsCompatibility()` and `setEnhanceWindowsCompatibility()` methods of the `Process` class 60 * passing a not existing working directory to the constructor of the `Symfony\Component\Process\Process` class is not 61 supported anymore 62 633.4.0 64----- 65 66 * deprecated the ProcessBuilder class 67 * deprecated calling `Process::start()` without setting a valid working directory beforehand (via `setWorkingDirectory()` or constructor) 68 693.3.0 70----- 71 72 * added command line arrays in the `Process` class 73 * added `$env` argument to `Process::start()`, `run()`, `mustRun()` and `restart()` methods 74 * deprecated the `ProcessUtils::escapeArgument()` method 75 * deprecated not inheriting environment variables 76 * deprecated configuring `proc_open()` options 77 * deprecated configuring enhanced Windows compatibility 78 * deprecated configuring enhanced sigchild compatibility 79 802.5.0 81----- 82 83 * added support for PTY mode 84 * added the convenience method "mustRun" 85 * deprecation: Process::setStdin() is deprecated in favor of Process::setInput() 86 * deprecation: Process::getStdin() is deprecated in favor of Process::getInput() 87 * deprecation: Process::setInput() and ProcessBuilder::setInput() do not accept non-scalar types 88 892.4.0 90----- 91 92 * added the ability to define an idle timeout 93 942.3.0 95----- 96 97 * added ProcessUtils::escapeArgument() to fix the bug in escapeshellarg() function on Windows 98 * added Process::signal() 99 * added Process::getPid() 100 * added support for a TTY mode 101 1022.2.0 103----- 104 105 * added ProcessBuilder::setArguments() to reset the arguments on a builder 106 * added a way to retrieve the standard and error output incrementally 107 * added Process:restart() 108 1092.1.0 110----- 111 112 * added support for non-blocking processes (start(), wait(), isRunning(), stop()) 113 * enhanced Windows compatibility 114 * added Process::getExitCodeText() that returns a string representation for 115 the exit code returned by the process 116 * added ProcessBuilder 117