1 | <?php |
||
9 | class LangTranslateAdapter extends i18nSSLegacyAdapter { |
||
|
|||
10 | |||
11 | /** |
||
12 | * |
||
13 | * @param array|string $messageId |
||
14 | * @param string $locale |
||
15 | * |
||
16 | * @return string |
||
17 | */ |
||
18 | public function translate($messageId, $locale = null) { |
||
45 | |||
46 | /** |
||
47 | * @return string |
||
48 | */ |
||
49 | public function toString() { |
||
52 | |||
53 | /** |
||
54 | * @param string $namespace |
||
55 | * @param string $locale |
||
56 | * |
||
57 | * @return string|false |
||
58 | */ |
||
59 | public function getFromCache($namespace, $locale = null) { |
||
76 | |||
77 | /** |
||
78 | * @param string $namespace |
||
79 | * @param string $value |
||
80 | * @param string $locale |
||
81 | * |
||
82 | * @return void |
||
83 | */ |
||
84 | public function storeToCache($namespace, $value, $locale = null) { |
||
95 | |||
96 | /** |
||
97 | * @param string $value |
||
98 | * |
||
99 | * @return string |
||
100 | */ |
||
101 | public static function filterCacheKey($value) { |
||
104 | |||
105 | } |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.