Well…. If we change the interface to only AbstractRestfulController then it is :)

----------------------------------------
Michaël Gallego

Tel. : 06-98-82-62-38
mic.gallego@gmail.com





Le 18 oct. 2013 à 18:19, Marco Pivetta <notifications@github.com> a écrit :

> In src/ZfrRest/Mvc/Controller/MethodHandler/OptionsHandler.php:
> 
> > +    {
> > +        // For the OPTIONS verb, we have an out-of-the box implementation, but if it is
> > +        // defined in the controller we use the user-land method instead
> > +        if (method_exists($controller, 'options')) {
> > +            $allowedMethods = $controller->options();
> > +        } else {
> > +            $allowedMethods = $this->getAllowedMethods($controller);
> > +        }
> > +
> > +        foreach ($allowedMethods as &$allowedMethod) {
> > +            $allowedMethod = strtoupper($allowedMethod);
> > +        }
> > +
> > +        $response = $controller->getResponse();
> > +
> > +        $response->getHeaders()->addHeaderLine('Allow', implode(', ', $allowedMethods));
> Careful, the $response may not be a Zend\Http\Response
> 
> —
> Reply to this email directly or view it on GitHub.
>