AMQPConnection::setLogin PHP Method

setLogin() public method

Set the login string used to connect to the AMQP broker.
public setLogin ( string $login ) : boolean
$login string The login string used to authenticate with the AMQP broker.
return boolean TRUE on success or FALSE on failure.
    public function setLogin($login)
    {
    }

Usage Example

Example #1
0
 /**
  * @inheritdoc
  */
 public function setLogin($login)
 {
     try {
         return $this->delegate->setLogin($login);
     } catch (\AMQPConnectionException $e) {
         throw new ConnectionException($e->getMessage(), $e->getCode(), $e);
     }
 }
All Usage Examples Of AMQPConnection::setLogin