In Symfony 2 I have the following code in my Controller:
// prepare to render the seller info panel $response = array( \'data\' => $data, ); // rende
Latest way of doing POST request redirect (as of Symfony 2.6) is simply:
return $this->redirectToRoute('route', [ 'request' => $request ], 307);
Code 307 preserves the request method, while redirectToRoute() is a shortcut method.
307
redirectToRoute()