+1 - sorry for mis-naming it so far - I was still convinced it was
`application.error`

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/


On 26 August 2013 19:17, Michaël Gallego <notifications@github.com> wrote:

> In src/ZfrCors/Mvc/ExceptionListener.php:
>
> > +use ZfrRest\Http\Exception\AbstractHttpException;
> > +
> > +/**
> > + * ExceptionListener
> > + *
> > + * @license MIT
> > + * @author  Florent Blaison <florent.blaison@gmail.com>
> > + */
> > +class ExceptionListener extends AbstractListenerAggregate
> > +{
> > +    /**
> > +     * {@inheritDoc}
> > +     */
> > +    public function attach(EventManagerInterface $events)
> > +    {
> > +        $this->listeners[] = $events->attach('application.error', array($this, 'onDisallowedOriginException'), 1000);
>
> After checking, application.error does not exist. It's "dispatch.error".
> But please, use MvcEvent::DISPATCH_ERROR instead of hardcoding keys.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/zf-fr/zfr-cors/pull/1/files#r5983261>
> .
>