I agree for the hydrator, but for the hydrator plugin manager, this is usually a shared instance.

Envoyé de mon iPhone

> Le 23 avr. 2014 à 20:27, Daniel Gimenes <notifications@github.com> a écrit :
> 
> In src/ZfrRest/Mvc/Controller/Event/HydrationEvent.php:
> 
> > +    {
> > +        $this->resource = $resource;
> > +    }
> > +
> > +    /**
> > +     * @return ResourceInterface
> > +     */
> > +    public function getResource()
> > +    {
> > +        return $this->resource;
> > +    }
> > +
> > +    /**
> > +     * @param AbstractPluginManager $hydratorManager
> > +     */
> > +    public function setHydratorManager(AbstractPluginManager $hydratorManager)
> We don't want to allow listeners to replace it?
> 
> —
> Reply to this email directly or view it on GitHub.