/**
  * Update locale in request analyzer.
  *
  * @param Request $request
  * @param RequestAnalyzerInterface $requestAnalyzer
  */
 public function enhance(Request $request, RequestAnalyzerInterface $requestAnalyzer)
 {
     if ($request->get('_custom_url') === null) {
         return;
     }
     $requestAnalyzer->updateLocale($request->get('_custom_url')->getTargetLocale(), $request);
 }