From e06dc2fee8d88914cab1455ffffd8d5b9d771d6d Mon Sep 17 00:00:00 2001 From: Matthew Weier O'Phinney Date: Thu, 23 Feb 2012 15:09:21 -0600 Subject: [PATCH] Remove $priority argument from ListenerAggregate interface - Broke code, and is optional anyways --- src/ListenerAggregate.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ListenerAggregate.php b/src/ListenerAggregate.php index 6952534..26a4439 100644 --- a/src/ListenerAggregate.php +++ b/src/ListenerAggregate.php @@ -41,10 +41,13 @@ interface ListenerAggregate /** * Attach one or more listeners * + * Implementors may add an optional $priority argument; the EventManager + * implementation will pass this to the aggregate. + * * @param EventCollection $events * @param null|int $priority Optional priority "hint" to use when attaching listeners */ - public function attach(EventCollection $events, $priority = null); + public function attach(EventCollection $events); /** * Detach all previously attached listeners