Skip to content

Commit

Permalink
event trigger triggers messenger by default
Browse files Browse the repository at this point in the history
  • Loading branch information
TomK committed Dec 10, 2015
1 parent 06be534 commit 6f5a6d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Models/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@

class Event extends FortifiModel
{
public function trigger($dataNodeFid, $eventAlias, array $data = [])
public function trigger(
$dataNodeFid, $eventAlias, array $data = [], $triggerMessenger = true
)
{
if(!FidHelper::isFid($dataNodeFid))
{
Expand All @@ -20,6 +22,7 @@ public function trigger($dataNodeFid, $eventAlias, array $data = [])
$payload->fid = $dataNodeFid;
$payload->alias = $eventAlias;
$payload->properties = $data;
$payload->triggerMessenger = $triggerMessenger;

$endpoint = EventsEndpoint::bound($this->_getApi());
return $this->_processRequest($endpoint->triggerEvent($payload));
Expand Down

0 comments on commit 6f5a6d4

Please sign in to comment.