1 | <?php |
||
8 | class BrowserDetectorDriver extends AbstractDetector |
||
9 | { |
||
10 | /** |
||
11 | * Detect language. |
||
12 | * |
||
13 | * @return string|null Returns the detected locale or null. |
||
14 | */ |
||
15 | public function detect() |
||
21 | |||
22 | /** |
||
23 | * Get the best language between the browser and the application. |
||
24 | * |
||
25 | * @return string |
||
26 | */ |
||
27 | public function chooseBestLanguage() |
||
31 | |||
32 | /** |
||
33 | * Get accept languages. |
||
34 | * |
||
35 | * @deprecated |
||
36 | * |
||
37 | * @return array |
||
38 | */ |
||
39 | public function browserLanguages() |
||
43 | } |
||
44 |