8000 [Intl] Fix LocaleDataGenerator · symfony/symfony@137ce3f · GitHub
[go: up one dir, main page]

Skip to content

Commit 137ce3f

Browse files
committed
[Intl] Fix LocaleDataGenerator
1 parent e9aaaaf commit 137ce3f

File tree

3 files changed

+27
-3
lines changed

3 files changed

+27
-3
lines changed

src/Symfony/Component/Intl/Data/Provider/LanguageDataProvider.php

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*
2020
* @author Bernhard Schussek <bschussek@gmail.com>
2121
*
22-
* @internal to be removed in 5.0.
22+
* @internal
2323
*/
2424
class LanguageDataProvider
2525
{
@@ -38,11 +38,17 @@ public function __construct(string $path, BundleEntryReaderInterface $reader)
3838
$this->reader = $reader;
3939
}
4040

41+
/**
42+
* @internal to be removed in 5.0.
43+
*/
4144
public function getLanguages()
4245
{
4346
return $this->reader->readEntry($this->path, 'meta', ['Languages']);
4447
}
4548

49+
/**
50+
* @internal to be removed in 5.0.
51+
*/
4652
public function getAliases()
4753
{
4854
return $this->reader->readEntry($this->path, 'root', ['Aliases']);
@@ -57,6 +63,9 @@ public function getName($language, $displayLocale = null)
5763
return $this->reader->readEntry($this->path, $displayLocale, ['Names', $language]);
5864
}
5965

66+
/**
67+
* @internal to be removed in 5.0.
68+
*/
6069
public function getNames($displayLocale = null)
6170
{
6271
if (null === $displayLocale) {
@@ -75,6 +84,9 @@ public function getNames($displayLocale = null)
7584
return $languages;
7685
}
7786

87+
/**
88+
* @internal to be removed in 5.0.
89+
*/
7890
public function getAlpha3Code($language)
7991
{
8092
return $this->reader->readEntry($this->path, 'meta', ['Alpha2ToAlpha3', $language]);

src/Symfony/Component/Intl/Data/Provider/RegionDataProvider.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*
2020
* @author Bernhard Schussek <bschussek@gmail.com>
2121
*
22-
* @internal to be removed in 5.0.
22+
* @internal
2323
*/
2424
class RegionDataProvider
2525
{
@@ -38,6 +38,9 @@ public function __construct(string $path, BundleEntryReaderInterface $reader)
3838
$this->reader = $reader;
3939
}
4040

41+
/**
42+
* @internal to be removed in 5.0.
43+
*/
4144
public function getRegions()
4245
{
4346
return $this->reader->readEntry($this->path, 'meta', ['Regions']);
@@ -52,6 +55,9 @@ public function getName($region, $displayLocale = null)
5255
return $this->reader->readEntry($this->path, $displayLocale, ['Names', $region]);
5356
}
5457

58+
/**
59+
* @internal to be removed in 5.0.
60+
*/
5561
public function getNames($displayLocale = null)
5662
{
5763
if (null === $displayLocale) {

src/Symfony/Component/Intl/Data/Provider/ScriptDataProvider.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*
2020
* @author Bernhard Schussek <bschussek@gmail.com>
2121
*
22-
* @internal to be removed in 5.0.
22+
* @internal
2323
*/
2424
class ScriptDataProvider
2525
{
@@ -38,6 +38,9 @@ public function __construct(string $path, BundleEntryReaderInterface $reader)
3838
$this->reader = $reader;
3939
}
4040

41+
/**
42+
* @internal to be removed in 5.0.
43+
*/
4144
public function getScripts()
4245
{
4346
return $this->reader->readEntry($this->path, 'meta', ['Scripts']);
@@ -52,6 +55,9 @@ public function getName($script, $displayLocale = null)
5255
return $this->reader->readEntry($this->path, $displayLocale, ['Names', $script]);
5356
}
5457

58+
/**
59+
* @internal to be removed in 5.0.
60+
*/
5561
public function getNames($displayLocale = null)
5662
{
5763
if (null === $displayLocale) {

0 commit comments

Comments
 (0)
0