★ wanayoo — archive 1999 https://github.com/phpredis/phpredis/issues/6Nouvelle recherche | Portail wanayoo
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

subscribe method doesn`t supports closures as an callback #6

Closed
vkartaviy opened this issue Apr 10, 2011 · 2 comments
Closed

subscribe method doesn`t supports closures as an callback #6

vkartaviy opened this issue Apr 10, 2011 · 2 comments
Assignees

Comments

@vkartaviy
Copy link

@vkartaviy vkartaviy commented Apr 10, 2011

It would be great if you will add closures support into the subscribe method.

For example:

$redis->subscribe(array($channel), function($redis, $channel, $message){
    echo 'Handle message ' . $message . ' for chanel ' . $channel . PHP_EOL;
});
@ghost ghost assigned nicolasff Apr 10, 2011
@nicolasff
Copy link
Contributor

@nicolasff nicolasff commented Apr 11, 2011

Hello,

It would be great, yes. I'll take a look this week and see if I can add it quickly.

@michael-grunder
Copy link
Member

@michael-grunder michael-grunder commented Nov 14, 2013

This has been implemented.

Cheers
Mike

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.