Usually we set event identifiers in `setEventManager()`, which ensures that
they happen on injection. That also simplifies the `getEventManager()`
implementation, as it only needs to call `setEventManager(new
EventManager())`.


On Wed, May 8, 2013 at 2:13 PM, Marco Pivetta <notifications@github.com>wrote:

> In library/Zend/Stdlib/Hydrator/Aggregate/AggregateHydrator.php:
>
> > +    }
> > +
> > +    /**
> > +     * {@inheritDoc}
> > +     */
> > +    public function setEventManager(EventManagerInterface $eventManager)
> > +    {
> > +        $this->eventManager = $eventManager;
> > +    }
> > +
> > +    /**
> > +     * {@inheritDoc}
> > +     */
> > +    public function getEventManager()
> > +    {
> > +        if (null === $this->eventManager) {
>
> Do the event identifiers get set here by the event manager initializer?
> Doesn't look like that - tips needed
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/zendframework/zf2/pull/4448/files#r4141310>
> .
>



-- 
Matthew Weier O'Phinney
matthew@weierophinney.net
http://mwop.net/