I'm beginner in Symfony, I wanna know if there is any way to control the process of my functions ( I mean to stop it or to run it.. at any time I want) I found this case using the Symfony process library :
use Symfony\Component\Process\Process;
$process = new Process('#command');
$process->start();
// ... do other things
$process->stop(3, SIGINT);
But, is it necessary to use the process as a command?
Is it similar to pcntl_fork
?