コード例 #1
0
ファイル: TypeFactory.php プロジェクト: ptlis/conneg-bundle
 /**
  * Return a collection of negotiated languages in descending order of preference.
  *
  * @param $appTypes
  *
  * @return SharedTypePairCollection
  */
 public function languageAll($appTypes)
 {
     $request = $this->requestStack->getCurrentRequest();
     $uaField = $request->server->get('HTTP_ACCEPT_LANGUAGE', '');
     return $this->negotiate->languageAll($uaField, $appTypes);
 }