Skip to content

Commit

Permalink
bugfix re: rewiring of Notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
esokullu committed Aug 13, 2019
1 parent 1ef8ec4 commit a981b6b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Pho/Kernel/Traits/Edge/PersistentTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ public function unserialize(/* mixed */ $data): void
public function rewire(): self
{
Hooks::setup($this);
Hooks::setup($this->notifications());
$notifications = $this->notifications();
foreach($notifications as $notification) {
Hooks::setup($notification);
}

$this->on("modified", [$this, "persist"]);

Expand Down

0 comments on commit a981b6b

Please sign in to comment.