Skip to content

Instantly share code, notes, and snippets.

@Stephenitis
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Stephenitis/0387672be4984f395529 to your computer and use it in GitHub Desktop.
Save Stephenitis/0387672be4984f395529 to your computer and use it in GitHub Desktop.
src/My/Bundle/ExampleBundle/Service/ExampleService.php
use Uecode\Bundle\QPushBundle\Event\MessageEvent;
use Uecode\Bundle\QPushBundle\Message\Message;
public function onMessageReceived(MessageEvent $event)
{
$id = $event->getMessage()->getId();
$body = $event->getMessage()->getBody();
$metadata = $event->getMessage()->getMetadata();
// do some processing
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment