public static function factory($config = array())
	{
		$default = array();
		$required = array('base_url');
		$config = Inspector::prepareConfig($config, $default, $required);
		$client = new self($config->get('base_url'), $config->get('token'));
		$client->setConfig($config);
		$client->getEventDispatcher()->addSubscriber(new AuthenticationObserver());
		return $client;
	}
public static function factory($config = array())
	{
		$default = array();
		$required = array('base_url');
		$config = Inspector::prepareConfig($config, $default, $required);
		$client = new self($config->get('base_url'), $config->get('token'));
		$client->setConfig($config);
		$client->getEventDispatcher()->addSubscriber(new AuthenticationObserver());
		return $client;
	}
public static function factory ( $ config = array ( ) ) { $ default = array ( ) ; $ required = array ( 'base_url' ) ; $ config = Inspector :: prepareConfig ( $ config , $ default , $ required ) ; $ client = new self ( $ config -> get ( 'base_url' ) , $ config -> get ( 'token' ) ) ; $ client -> setConfig ( $ config ) ; $ client -> getEventDispatcher ( ) -> addSubscriber ( new AuthenticationObserver ( ) ) ; return $ client ; }
Factory method to create a new IdentityClient

@static

@param array|Collection $config Configuration data. Array keys:
base_url - Identity base url

@return \Guzzle\Common\FromConfigInterface|IdentityClient|\Guzzle\Service\Client
Factory method to create a new IdentityClient