Skip to content

Commit

Permalink
call db class
Browse files Browse the repository at this point in the history
  • Loading branch information
ch3k1 committed Oct 4, 2016
1 parent 9d5ebde commit 11e0edf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/SquidApp/Pusher.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ public function onSubscribe(ConnectionInterface $conn, $topic) {
}

public function onBlogEntry($entry) {

$db = new Database();

$entryData = json_decode($entry, true);

print_r($entryData);

if (!array_key_exists($entryData['squidmagic'] , $this->subscribedTopics)) {
return;
Expand Down

0 comments on commit 11e0edf

Please sign in to comment.