Flint\Controller\Controller::text PHP Method

text() public method

Creates a normal response with the given text and statusCode
public text ( string $text, integer $statusCode = 200, array $headers = [] ) : Response
$text string
$statusCode integer
$headers array
return Symfony\Component\HttpFoundation\Response
    public function text($text, $statusCode = 200, array $headers = array())
    {
        return new Response($text, $statusCode, $headers);
    }