I have this view:
//login.html.twig
You should pass the Request object to the action method then deal with it:
public function conectionAction(Request $request){
if ($request->getMethod() == Request::METHOD_POST){
$user = $request->request->get('user');
$password = $request->request->get('password');
}
}
However I suggest you to use the Symfony Form Component to dial with this situation.