Process::mustRun()

Process mustRun(callable $callback = null)

Runs the process.

This is identical to run() except that an exception is thrown if the process exits with a non-zero exit code.

Parameters

callable $callback

Return Value

Process

Exceptions

RuntimeException if PHP was compiled with --enable-sigchild and the enhanced sigchild compatibility mode is not enabled
ProcessFailedException if the process didn't terminate successfully
doc_Symfony
2016-10-28 06:26:58
Comments
Leave a Comment

Please login to continue.