public function setCredentials(Authentication\AuthenticationInterface $auth)
    {
        // keep BC
        if ($auth instanceof Authentication\Basic) {
            $this->getClient()->addListener(
                new Http\Listener\BasicAuthListener($auth->getUsername(), $auth->getPassword())
            );
        }

        $this->auth = $auth;
    }
public function setCredentials(Authentication\AuthenticationInterface $auth)
    {
        // keep BC
        if ($auth instanceof Authentication\Basic) {
            $this->getClient()->addListener(
                new Http\Listener\BasicAuthListener($auth->getUsername(), $auth->getPassword())
            );
        }

        $this->auth = $auth;
    }
public function setCredentials ( Authentication \ AuthenticationInterface $ auth ) { // keep BC if ( $ auth instanceof Authentication \ Basic ) { $ this -> getClient ( ) -> addListener ( new Http \ Listener \ BasicAuthListener ( $ auth -> getUsername ( ) , $ auth -> getPassword ( ) ) ) ; } $ this -> auth = $ auth ; }
Set API login credentials

@access public
@param  Authentication\AuthenticationInterface $auth
@return void
Set API login credentials