protected function redefineResponse(&$container)
    {
        // Redefine - response
        $container['response'] = function (Container $container) {
            $headers = new Headers(['Content-Type' => 'application/json;charset=utf-8']);
            $response = new Response(200, $headers);
            return $response->withProtocolVersion($container->get('settings')['httpVersion']);
        };
    }
protected function redefineResponse(&$container)
    {
        // Redefine - response
        $container['response'] = function (Container $container) {
            $headers = new Headers(['Content-Type' => 'application/json;charset=utf-8']);
            $response = new Response(200, $headers);
            return $response->withProtocolVersion($container->get('settings')['httpVersion']);
        };
    }
protected function redefineResponse ( & $ container ) { // Redefine - response $ container [ 'response' ] = function ( Container $ container ) { $ headers = new Headers ( [ 'Content-Type' => 'application/json;charset=utf-8' ] ) ; $ response = new Response ( 200 , $ headers ) ; return $ response -> withProtocolVersion ( $ container -> get ( 'settings' ) [ 'httpVersion' ] ) ; } ; }
Redefine Response object

@param array|ContainerInterface $container Instancia de Container o array de configuración.

@return void
Redefine Response object