Call to a member function handle() on a non-object in PPRestCall on line 39

$handler is a string and not a object.