Very good point!

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/


On 9 May 2013 01:26, prolic <notifications@github.com> wrote:

> In library/Zend/Stdlib/Hydrator/Aggregate/AggregateHydrator.php:
>
> > +     */
> > +    protected $eventManager;
> > +
> > +    public function add(HydratorInterface $hydrator, $priority = self::DEFAULT_PRIORITY)
> > +    {
> > +        $this->getEventManager()->
> attachAggregate(new HydratorListener($hydrator), $priority);
> > +    }
> > +
> > +    /**
> > +     * {@inheritDoc}
> > +     */
> > +    public function extract($object)
> > +    {
> > +        $event = new ExtractEvent($this, $object);
> > +
> > +        $this->eventManager->trigger($event);
>
> yes, return results, if any.
> this allows also caching hydrator results based on events.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/zendframework/zf2/pull/4448/files#r4145989>
> .
>