Skip to content

Commit

Permalink
Don't forward events on before event as events are not pushed when di…
Browse files Browse the repository at this point in the history
…spatched from console commands
  • Loading branch information
alcalyn committed Aug 30, 2017
1 parent b1290f5 commit 5311c01
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,7 @@ public function forwardEventsToPushServer(array $eventsNames)
));
}

$this->before(function () use ($eventsNames) {
$this['sandstone.push.event_forwarder']->forwardAllEvents($eventsNames);
});
$this['sandstone.push.event_forwarder']->forwardAllEvents($eventsNames);

return $this;
}
Expand Down

0 comments on commit 5311c01

Please sign in to comment.