Skip to content

Commit

Permalink
fix trigger afterConstruct event
Browse files Browse the repository at this point in the history
  • Loading branch information
sokil committed Nov 2, 2017
1 parent e7c5e8a commit 44d6fcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ public function __construct(Collection $collection, array $data = null, array $o
$this->getRevisionManager()->listen();
}

// execure after construct event handlers
$this->eventDispatcher->dispatch('afterConstruct');
// execute after construct event handlers
$this->triggerEvent('afterConstruct');
}

public function getOptions()
Expand Down

0 comments on commit 44d6fcf

Please sign in to comment.