Orno\Route\Dispatcher::determineResponse PHP Метод

determineResponse() защищенный Метод

Attempt to build a response
protected determineResponse ( mixed $response ) : Orno\Http\ResponseInterface
$response mixed
Результат Orno\Http\ResponseInterface
    protected function determineResponse($response)
    {
        if ($response instanceof ResponseInterface) {
            return $response;
        }
        try {
            $response = new Response($response);
        } catch (\Exception $e) {
            throw new \RuntimeException('Unable to build Response from controller return value', 0, $e);
        }
        return $response;
    }