Skip to content

Commit

Permalink
Merge pull request #136 from samsonasik/add-priority-in-interface
Browse files Browse the repository at this point in the history
listener call priority in PennyEvmInterface
  • Loading branch information
Gianluca Arbezzano committed Nov 26, 2015
2 parents d8077f0 + a137d22 commit 3649ba3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Event/PennyEvmInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public function trigger(PennyEventInterface $event);
*
* @param string $eventName Specific event name
* @param callable $listener Function to call
* @param int $priority listener call priority
*/
public function attach($eventName, callable $listener);
public function attach($eventName, callable $listener, $priority = 0);
}

0 comments on commit 3649ba3

Please sign in to comment.