Skip to content

Commit 9d67a68

Browse files
boscho87nicolas-grekas
authored andcommitted
[Translation] marked getFallbackLocales() as internal
1 parent 38655bd commit 9d67a68

File tree

5 files changed

+8
-0
lines changed

5 files changed

+8
-0
lines changed

UPGRADE-4.2.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ Translation
209209

210210
* The `TranslatorInterface` has been deprecated in favor of `Symfony\Contracts\Translation\TranslatorInterface`
211211
* The `MessageSelector`, `Interval` and `PluralizationRules` classes have been deprecated, use `IdentityTranslator` instead
212+
* The `Translator::getFallbackLocales()` and `TranslationDataCollector::getFallbackLocales()` method have been marked as internal
212213

213214
Validator
214215
---------

UPGRADE-5.0.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ Translation
184184
* The `TranslationWriter::disableBackup()` method has been removed.
185185
* The `TranslatorInterface` has been removed in favor of `Symfony\Contracts\Translation\TranslatorInterface`
186186
* The `MessageSelector`, `Interval` and `PluralizationRules` classes have been removed, use `IdentityTranslator` instead
187+
* The `Translator::getFallbackLocales()` and `TranslationDataCollector::getFallbackLocales()` method are now internal
187188

188189
TwigBundle
189190
----------

src/Symfony/Component/Translation/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ CHANGELOG
99
* deprecated `MessageSelector`, `Interval` and `PluralizationRules`; use `IdentityTranslator` instead
1010
* Added `IntlMessageFormatter` and `FallbackMessageFormatter`
1111
* added support for multiple files and directories in `XliffLintCommand`
12+
* Marked `Translator::getFallbackLocales()` and `TranslationDataCollector::getFallbackLocales()` as internal
1213

1314
4.1.0
1415
-----

src/Symfony/Component/Translation/DataCollector/TranslationDataCollector.php

100644100755
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ public function getLocale()
9797
return !empty($this->data['locale']) ? $this->data['locale'] : null;
9898
}
9999

100+
/**
101+
* @internal since Symfony 4.2
102+
*/
100103
public function getFallbackLocales()
101104
{
102105
return (isset($this->data['fallback_locales']) && \count($this->data['fallback_locales']) > 0) ? $this->data['fallback_locales'] : array();

src/Symfony/Component/Translation/Translator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,8 @@ public function setFallbackLocales(array $locales)
176176
/**
177177
* Gets the fallback locales.
178178
*
179+
* @internal since Symfony 4.2
180+
*
179181
* @return array $locales The fallback locales
180182
*/
181183
public function getFallbackLocales()

0 commit comments

Comments
 (0)