Skip to content

Commit

Permalink
Merge pull request zendframework#4528 from bakura10/fix-aggregate-hyd…
Browse files Browse the repository at this point in the history
…rator

Fix priority not handled in AggregateHydrator
  • Loading branch information
weierophinney committed May 23, 2013
2 parents 8bed51c + fa7e041 commit 51fcd1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/Zend/Stdlib/Hydrator/Aggregate/HydratorListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ public function __construct(HydratorInterface $hydrator)
/**
* {@inheritDoc}
*/
public function attach(EventManagerInterface $events)
public function attach(EventManagerInterface $events, $priority = 1)
{
$this->listeners[] = $events->attach(HydrateEvent::EVENT_HYDRATE, array($this, 'onHydrate'));
$this->listeners[] = $events->attach(ExtractEvent::EVENT_EXTRACT, array($this, 'onExtract'));
$this->listeners[] = $events->attach(HydrateEvent::EVENT_HYDRATE, array($this, 'onHydrate'), $priority);
$this->listeners[] = $events->attach(ExtractEvent::EVENT_EXTRACT, array($this, 'onExtract'), $priority);
}

/**
Expand Down

0 comments on commit 51fcd1e

Please sign in to comment.