Phraseanet PHP SDK API
Class

PhraseanetSDK\Application

class Application implements ApplicationInterface

Phraseanet SDK Application

Methods

__construct(GuzzleAdapter $adapter, $clientId, $secret)

OAuth2Connector getOauth2Connector()

Return the OAuth2Connector

EntityManager getEntityManager(string $token)

Returns the entity manager given a token

Monitor getMonitor(string $token)

Returns a monitor instance

GuzzleAdapter getAdapter()

Returns the guzzle adapter

static Application create(array $config, array $cache = array(), array $plugins = array())

Creates the application.

Details

at line 39
public __construct(GuzzleAdapter $adapter, $clientId, $secret)

Parameters

GuzzleAdapter $adapter
$clientId
$secret

at line 49
public OAuth2Connector getOauth2Connector()

Return the OAuth2Connector

Return Value

OAuth2Connector

at line 61
public EntityManager getEntityManager(string $token)

Returns the entity manager given a token

Parameters

string $token

Return Value

EntityManager

at line 83
public Monitor getMonitor(string $token)

Returns a monitor instance

Parameters

string $token

Return Value

Monitor

at line 107
public GuzzleAdapter getAdapter()

Returns the guzzle adapter

Return Value

GuzzleAdapter

at line 123
static public Application create(array $config, array $cache = array(), array $plugins = array())

Creates the application.

Parameters

array $config
array $cache
array $plugins

Return Value

Application

Exceptions

InvalidArgumentException In case a parameter is missing