public function __construct(PayloadFactory $factory = null, ExecutableFinder $finder = null, $bootstrap = null, $phpBinary = null, $phpConfig = [], $phpWrapper = null)
{
$this->bootstrap = $bootstrap;
$this->payloadFactory = $factory ?: new PayloadFactory();
$this->phpBinary = $phpBinary;
$this->phpConfig = $phpConfig;
$this->phpWrapper = $phpWrapper;
$this->finder = $finder ?: new ExecutableFinder();
}