Process::restart()

Process restart(callable $callback = null)

Restarts the process.

Be warned that the process is cloned before being started.

Parameters

callable $callback A PHP callback to run whenever there is some output available on STDOUT or STDERR

Return Value

Process The new process

Exceptions

RuntimeException When process can't be launched
RuntimeException When process is already running

See also

start()
doc_Symfony
2016-10-28 06:26:58
Comments
Leave a Comment

Please login to continue.