Skip to content

Conversation

@alinilie
Copy link
Contributor

No description provided.

@skafandri
Copy link
Collaborator

is there a use case to get the callback from the consumer?

@alinilie
Copy link
Contributor Author

My bad, i didn't write about the use case from the first time. Having this method will give you access to the callback from event listener (you already have consumer from method getConsumer).

@skafandri
Copy link
Collaborator

Ok, so we get the callback which is a callable, what can we do with it? Except executing it, which is happening anyway.

@alinilie
Copy link
Contributor Author

I will use the class name to create a metric in Graphite (i have a listener for AMQPEvent::BEFORE_PROCESSING_MESSAGE).

@skafandri skafandri merged commit 10317da into php-amqplib:master Feb 14, 2017
@skafandri
Copy link
Collaborator

Be aware that it may return any callable, so handle it in your code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants