Sets the $request property and resets all language types.
\Symfony\Component\HttpFoundation\Request $request: The HttpRequest object representing the current request.
public function setRequest(Request $request) {
$this->request = $request;
$this
->reset();
$this
->init();
}