PhpAmqpLib/Channel/AMQPChannel.php
public function access_request(
        $realm,
        $exclusive = false,
        $passive = false,
        $active = false,
        $write = false,
        $read = false
    ) {
        list($class_id, $method_id, $args) = $this->protocolWriter->accessRequest(
            $realm,
            $exclusive,
            $passive,
            $active,
            $write,
            $read
        );

        $this->send_method_frame(array($class_id, $method_id), $args);

        return $this->wait(array(
            $this->waitHelper->get_wait('access.request_ok')
        ), false, $this->channel_rpc_timeout);
    }
public function access_request(
        $realm,
        $exclusive = false,
        $passive = false,
        $active = false,
        $write = false,
        $read = false
    ) {
        list($class_id, $method_id, $args) = $this->protocolWriter->accessRequest(
            $realm,
            $exclusive,
            $passive,
            $active,
            $write,
            $read
        );

        $this->send_method_frame(array($class_id, $method_id), $args);

        return $this->wait(array(
            $this->waitHelper->get_wait('access.request_ok')
        ), false, $this->channel_rpc_timeout);
    }
public function access_request ( $ realm , $ exclusive = false , $ passive = false , $ active = false , $ write = false , $ read = false ) { list ( $ class_id , $ method_id , $ args ) = $ this -> protocolWriter -> accessRequest ( $ realm , $ exclusive , $ passive , $ active , $ write , $ read ) ; $ this -> send_method_frame ( array ( $ class_id , $ method_id ) , $ args ) ; return $ this -> wait ( array ( $ this -> waitHelper -> get_wait ( 'access.request_ok' ) ) , false , $ this -> channel_rpc_timeout ) ; }
Requests an access ticket

@param string $realm
@param bool $exclusive
@param bool $passive
@param bool $active
@param bool $write
@param bool $read
@throws \PhpAmqpLib\Exception\AMQPTimeoutException if the specified operation timeout was exceeded
@return mixed
Requests an access ticket