public function detect(Request $request)
	{
		if ($request->isMethod('post')) {
			return $request->request->get($this->parameterName);
		}

		return $request->query->get($this->parameterName);
	}
public function detect(Request $request)
	{
		if ($request->isMethod('post')) {
			return $request->request->get($this->parameterName);
		}

		return $request->query->get($this->parameterName);
	}
public function detect ( Request $ request ) { if ( $ request -> isMethod ( 'post' ) ) { return $ request -> request -> get ( $ this -> parameterName ) ; } return $ request -> query -> get ( $ this -> parameterName ) ; }
Detects the current locale

@param Request $request
@param Response $response
@return string
Detects the current locale