phirehose

How do I customize and use Phirehose functions?

若如初见. 提交于 2020-01-05 11:47:44
问题 I'm trying to put in a check for Phirehose to stop running after 10 seconds or 100 tweets...basically, I want to be able to stop the script. I was told I could customize the statusUpdate() function or the heartBeat() function, but I'm uncertain how to do that. Right now, I'm just testing with the filter-track.php example. How do I customize the functions, and where should I call them in the class? class FilterTrackConsumer extends OauthPhirehose { /** * Enqueue each status * * @param string

How do I Access my Models using a Daemon in Zend Framework

六眼飞鱼酱① 提交于 2019-12-21 20:07:01
问题 I am working on a project that is using Phirehose to collect and consume the Twitter Streaming API. The Phirehose library is designed to be run from the command line, preferably as a daemon or cron job. I created a daemon and placed it in the library folder. Bootstrap.php has been updated to autoload the custom library. So, the application itself has no problem seeing my daemon. My issue is how to integrate it properly with Zend Framework. I need to be able to call the daemon file directly to

How do I Access my Models using a Daemon in Zend Framework

拜拜、爱过 提交于 2019-12-04 13:23:16
I am working on a project that is using Phirehose to collect and consume the Twitter Streaming API. The Phirehose library is designed to be run from the command line, preferably as a daemon or cron job. I created a daemon and placed it in the library folder. Bootstrap.php has been updated to autoload the custom library. So, the application itself has no problem seeing my daemon. My issue is how to integrate it properly with Zend Framework. I need to be able to call the daemon file directly to start it from the command line or using a tool such as Upstart , but in doing so the Zend application