src/RoutingFailedResponder.php
protected function other(Request $request, Response $response, Route $route)
    {
        $request;
        $response = $response->withStatus(500)
            ->withHeader('Content-Type', 'text/plain');
        $message = sprintf(
            'Route "%s" failed for rule "%s"',
            $route->name,
            $route->failedRule
        );
        $response->getBody()->write($message);
        return $response;
    }
protected function other(Request $request, Response $response, Route $route)
    {
        $request;
        $response = $response->withStatus(500)
            ->withHeader('Content-Type', 'text/plain');
        $message = sprintf(
            'Route "%s" failed for rule "%s"',
            $route->name,
            $route->failedRule
        );
        $response->getBody()->write($message);
        return $response;
    }
protected function other ( Request $ request , Response $ response , Route $ route ) { $ request ; $ response = $ response -> withStatus ( 500 ) -> withHeader ( 'Content-Type' , 'text/plain' ) ; $ message = sprintf ( 'Route "%s" failed for rule "%s"' , $ route -> name , $ route -> failedRule ) ; $ response -> getBody ( ) -> write ( $ message ) ; return $ response ; }
Other rule failed

Builds the Response when routing failed for some other reason.

@param Request  $request  PSR7 Request
@param Response $response PSR7 Response
@param Route    $route    Failed Route

@return Response

@access protected
Other rule failed