public function options()
    {
        $options = array();

        $resourceMetadata = $this->app->getResourceMetadata($this);

        foreach ($resourceMetadata->getMethods() as $method => $methodMetadata) {
            $options[] = strtoupper($method);
        }

        return new Response(200, $options, array(
            'Allow' => implode(',', $options)
        ));
    }
public function options()
    {
        $options = array();

        $resourceMetadata = $this->app->getResourceMetadata($this);

        foreach ($resourceMetadata->getMethods() as $method => $methodMetadata) {
            $options[] = strtoupper($method);
        }

        return new Response(200, $options, array(
            'Allow' => implode(',', $options)
        ));
    }
public function options ( ) { $ options = array ( ) ; $ resourceMetadata = $ this -> app -> getResourceMetadata ( $ this ) ; foreach ( $ resourceMetadata -> getMethods ( ) as $ method => $ methodMetadata ) { $ options [ ] = strtoupper ( $ method ) ; } return new Response ( 200 , $ options , array ( 'Allow' => implode ( ',' , $ options ) ) ) ; }
Show a options HTTP method response

@method OPTIONS
Show a options HTTP method response