CC-2631: Convert pypo to accept commands from RabbitMQ

- initial commit
This commit is contained in:
James 2011-08-11 16:20:20 -04:00
parent 4125f83ae7
commit 1c81d0d238
2 changed files with 10 additions and 2 deletions

View file

@ -31,7 +31,9 @@ class RabbitMq
$EXCHANGE = 'airtime-schedule';
$channel->exchange_declare($EXCHANGE, 'direct', false, true);
$data = json_encode(Schedule::GetScheduledPlaylists());
$temp['event_type'] = "update_schedule";
$temp['schedule'] = Schedule::GetScheduledPlaylists();
$data = json_encode($temp);
$msg = new AMQPMessage($data, array('content_type' => 'text/plain'));
$channel->basic_publish($msg, $EXCHANGE);