lib/RestAPI.php
public function setupWorker(Config $config)
    {

        $credentials = $config->getParams()['credentials'];

        $this->_worker = new \GuzzleHttp\Client(array(
            'defaults' => array(
                'auth' => array($credentials['username'], $credentials['password']),
            ),
        ));
    }
public function setupWorker(Config $config)
    {

        $credentials = $config->getParams()['credentials'];

        $this->_worker = new \GuzzleHttp\Client(array(
            'defaults' => array(
                'auth' => array($credentials['username'], $credentials['password']),
            ),
        ));
    }
public function setupWorker ( Config $ config ) { $ credentials = $ config -> getParams ( ) [ 'credentials' ] ; $ this -> _worker = new \ GuzzleHttp \ Client ( array ( 'defaults' => array ( 'auth' => array ( $ credentials [ 'username' ] , $ credentials [ 'password' ] ) , ) , ) ) ; }
Constructs the middleware REST client library.
@param Config $config The configuration singleton.
Constructs the middleware REST client library .