src/NotAllowedHandler.php
protected function renderPlainText(
        ServerRequestInterface $request,
        ResponseInterface $response,
        array $allowedMethods
    ) {
        printf("Method %s is not allowed\r\n", $request->getMethod());
        if ($this->isDisplayError()) {
            printf("Request method must be one of: (%s).\r\n", implode(', ', $allowedMethods));
        }
    }
protected function renderPlainText(
        ServerRequestInterface $request,
        ResponseInterface $response,
        array $allowedMethods
    ) {
        printf("Method %s is not allowed\r\n", $request->getMethod());
        if ($this->isDisplayError()) {
            printf("Request method must be one of: (%s).\r\n", implode(', ', $allowedMethods));
        }
    }
protected function renderPlainText ( ServerRequestInterface $ request , ResponseInterface $ response , array $ allowedMethods ) { printf ( "Method %s is not allowed\r\n" , $ request -> getMethod ( ) ) ; if ( $ this -> isDisplayError ( ) ) { printf ( "Request method must be one of: (%s).\r\n" , implode ( ', ' , $ allowedMethods ) ) ; } }
Render Plain Text Output

@param ServerRequestInterface $request
@param ResponseInterface      $response just for reference
@param array $allowedMethods

@return void
Render Plain Text Output