The first parameter of twig "render" method must implement interface Psr\Http\Message\ResponseInterface, like $response here :
$app->get('/', function($request, $response, $args){
$this->view->render($response, 'home.twig');
})->setName('home');
In my view 'home.twig', how can I use $response to get the request variables ?
Like this link http://link...?name=the_name
How can I get the GET 'name' variable in the home.view code ?
Using $response ? It not, what's the purpose of $response there ?