Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dd3dc1a

Browse files
minor #31675 [Intl][4.3] Cleanup internal api (ro0NL)
This PR was merged into the 4.3 branch. Discussion ---------- [Intl][4.3] Cleanup internal api | Q | A | ------------- | --- | Branch? | 4.3 | Bug fix? | yes | New feature? | no | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | #... <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> Forgotten in #31411 (comment) Commits ------- 6eab5d2 [Intl][4.3] Cleanup internal api
2 parents 33e743b + 6eab5d2 commit dd3dc1a

File tree

3 files changed

+3
-27
lines changed

3 files changed

+3
-27
lines changed

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

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*
1919
* @author Bernhard Schussek <[email protected]>
2020
*
21-
* @internal
21+
* @internal to be removed in 5.0.
2222
*/
2323
class LanguageDataProvider
2424
{
@@ -37,17 +37,11 @@ public function __construct(string $path, BundleEntryReaderInterface $reader)
3737
$this->reader = $reader;
3838
}
3939

40-
/**
41-
* @internal to be removed in 5.0.
42-
*/
4340
public function getLanguages()
4441
{
4542
return $this->reader->readEntry($this->path, 'meta', ['Languages']);
4643
}
4744

48-
/**
49-
* @internal to be removed in 5.0.
50-
*/
5145
public function getAliases()
5246
{
5347
return $this->reader->readEntry($this->path, 'root', ['Aliases']);
@@ -62,9 +56,6 @@ public function getName($language, $displayLocale = null)
6256
return $this->reader->readEntry($this->path, $displayLocale, ['Names', $language]);
6357
}
6458

65-
/**
66-
* @internal to be removed in 5.0.
67-
*/
6859
public function getNames($displayLocale = null)
6960
{
7061
if (null === $displayLocale) {
@@ -83,9 +74,6 @@ public function getNames($displayLocale = null)
8374
return $languages;
8475
}
8576

86-
/**
87-
* @internal to be removed in 5.0.
88-
*/
8977
public function getAlpha3Code($language)
9078
{
9179
return $this->reader->readEntry($this->path, 'meta', ['Alpha2ToAlpha3', $language]);

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*
1919
* @author Bernhard Schussek <[email protected]>
2020
*
21-
* @internal
21+
* @internal to be removed in 5.0.
2222
*/
2323
class RegionDataProvider
2424
{
@@ -37,9 +37,6 @@ public function __construct(string $path, BundleEntryReaderInterface $reader)
3737
$this->reader = $reader;
3838
}
3939

40-
/**
41-
* @internal to be removed in 5.0.
42-
*/
4340
public function getRegions()
4441
{
4542
return $this->reader->readEntry($this->path, 'meta', ['Regions']);
@@ -54,9 +51,6 @@ public function getName($region, $displayLocale = null)
5451
return $this->reader->readEntry($this->path, $displayLocale, ['Names', $region]);
5552
}
5653

57-
/**
58-
* @internal to be removed in 5.0.
59-
*/
6054
public function getNames($displayLocale = null)
6155
{
6256
if (null === $displayLocale) {

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*
1919
* @author Bernhard Schussek <[email protected]>
2020
*
21-
* @internal
21+
* @internal to be removed in 5.0.
2222
*/
2323
class ScriptDataProvider
2424
{
@@ -37,9 +37,6 @@ public function __construct(string $path, BundleEntryReaderInterface $reader)
3737
$this->reader = $reader;
3838
}
3939

40-
/**
41-
* @internal to be removed in 5.0.
42-
*/
4340
public function getScripts()
4441
{
4542
return $this->reader->readEntry($this->path, 'meta', ['Scripts']);
@@ -54,9 +51,6 @@ public function getName($script, $displayLocale = null)
5451
return $this->reader->readEntry($this->path, $displayLocale, ['Names', $script]);
5552
}
5653

57-
/**
58-
* @internal to be removed in 5.0.
59-
*/
6054
public function getNames($displayLocale = null)
6155
{
6256
if (null === $displayLocale) {

0 commit comments

Comments
 (0)