| Total Complexity | 3 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | class Translator extends BaseTranslator implements ConfigListenerInterface |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @inheritDoc |
||
| 25 | */ |
||
| 26 | public function onChanges(Config $xConfig) |
||
| 27 | { |
||
| 28 | // Set the library language any time the config is changed. |
||
| 29 | $this->setLocale($xConfig->getOption('core.language')); |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @inheritDoc |
||
| 34 | */ |
||
| 35 | public function onChange(Config $xConfig, string $sName) |
||
| 41 | } |
||
| 42 | } |
||
| 44 |