The Symfony Process Component (seeĀ http://symfony.com/doc/current/components/process.html) allows to manipulate processes with ease, which includes, but not limited to:
- create new process
- running processes in parallel
- getting error output of the process
- getting exit code of the process
- get output from process in real time (useful for long running commands)
One side effect from is increasing In-Portal minimal needed version from 5.3.2 to 5.3.9 because the mentioned component needs this.
Solution
- connect the "symfony/process" package in "composer.json"
- create "ProcessHelper" class with "getProcess(...)" method, that would create Symfony Process class instance
- increase minimum PHP version dependency to 5.3.9