But they will still extend from AbstractRestfulController :).

----------------------------------------
Michaël Gallego

Tel. : 06-98-82-62-38
mic.gallego@gmail.com





Le 18 oct. 2013 à 18:24, 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));
> They will use their own controller implementation if they implement their own method handlers
> 
> —
> Reply to this email directly or view it on GitHub.
>