Connect for PHP 1.4 Requires ApplicationContext
Content
I've been using OSC's various Connect APIs for a long time, but there are a couple of new wrinkles in version 1.4. Here's one of them: when calling RNObject::fetch(...) you now have to provide an ApplicationContext. This is done on line 15 of the code block below. If you don't do this, you'll get an exception that says something similar to
ApplicationContext is not set for the request for class RightNow\Connect\v1_4\Incident
Connect Web Services has always required an application context, but this is obvious when classes are generated from the WSDL. It's less obvious with PHP, and the documentation for RNObject::fetch(...) doesn't mention it.
3