It should be a fairly simple case of replacing $sp_notify = new stdClass();
with $sp_notify = new core\message\message();
.
If that gives you different errors, post lines 179-188 and we should be able to see why.
It should be a fairly simple case of replacing $sp_notify = new stdClass();
with $sp_notify = new core\message\message();
.
If that gives you different errors, post lines 179-188 and we should be able to see why.