Last active
August 29, 2015 14:02
-
-
Save Stephenitis/0387672be4984f395529 to your computer and use it in GitHub Desktop.
src/My/Bundle/ExampleBundle/Service/ExampleService.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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