class SDKLoader

The SDKLoader helper allows developers to quickly load common PHP SDKs from API providers and apply configuration stored in CloudObjects.

Methods

__construct(ObjectRetriever $objectRetriever)

No description

get($classname, array $options)

Initialize and return the SDK with the given classname.

Details

at line 25
__construct(ObjectRetriever $objectRetriever)

Parameters

ObjectRetriever $objectRetriever An initialized and authenticated object retriever.

at line 37
get($classname, array $options)

Initialize and return the SDK with the given classname.

Throws Exception if the SDK is not supported.

Parameters

$classname Classname for the SDK's main class
array $options Additional options for the SDK (if necessary)