src/Controller/UserController.php
/**
     * Summary: Provides the list of HTTP supported methods
     *
     * @param  Request $request
     * @param  Response $response
     * @return Response
     */
Provides the list of HTTP supported methods
@param  Request $request
@param  Response $response
@return Response
Provides the list of HTTP supported methods @param Request $request @param Response $response @return Response
public function options(Request $request, Response $response): Response
    {
        $routeContext = RouteContext::fromRequest($request);
        $routingResults = $routeContext->getRoutingResults();
        $methods = $routingResults->getAllowedMethods();
        return $response
            ->withAddedHeader(
                'Allow',
                implode(', ', $methods)
            );
    }
public function options ( Request $ request , Response $ response ) : Response { $ routeContext = RouteContext :: fromRequest ( $ request ) ; $ routingResults = $ routeContext -> getRoutingResults ( ) ; $ methods = $ routingResults -> getAllowedMethods ( ) ; return $ response -> withAddedHeader ( 'Allow' , implode ( ', ' , $ methods ) ) ; }
Summary: Provides the list of HTTP supported methods
 @param  Request $request
 @param  Response $response
 @return Response
Summary : Provides the list of HTTP supported methods @param Request $request @param Response $response @return Response