[Intl][4.3] Cleanup internal api
This commit is contained in:
parent
33e743b5f7
commit
6eab5d2460
@ -18,7 +18,7 @@ use Symfony\Component\Intl\Data\Bundle\Reader\BundleEntryReaderInterface;
|
||||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @internal
|
||||
* @internal to be removed in 5.0.
|
||||
*/
|
||||
class LanguageDataProvider
|
||||
{
|
||||
@ -37,17 +37,11 @@ class LanguageDataProvider
|
||||
$this->reader = $reader;
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal to be removed in 5.0.
|
||||
*/
|
||||
public function getLanguages()
|
||||
{
|
||||
return $this->reader->readEntry($this->path, 'meta', ['Languages']);
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal to be removed in 5.0.
|
||||
*/
|
||||
public function getAliases()
|
||||
{
|
||||
return $this->reader->readEntry($this->path, 'root', ['Aliases']);
|
||||
@ -62,9 +56,6 @@ class LanguageDataProvider
|
||||
return $this->reader->readEntry($this->path, $displayLocale, ['Names', $language]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal to be removed in 5.0.
|
||||
*/
|
||||
public function getNames($displayLocale = null)
|
||||
{
|
||||
if (null === $displayLocale) {
|
||||
@ -83,9 +74,6 @@ class LanguageDataProvider
|
||||
return $languages;
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal to be removed in 5.0.
|
||||
*/
|
||||
public function getAlpha3Code($language)
|
||||
{
|
||||
return $this->reader->readEntry($this->path, 'meta', ['Alpha2ToAlpha3', $language]);
|
||||
|
@ -18,7 +18,7 @@ use Symfony\Component\Intl\Data\Bundle\Reader\BundleEntryReaderInterface;
|
||||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @internal
|
||||
* @internal to be removed in 5.0.
|
||||
*/
|
||||
class RegionDataProvider
|
||||
{
|
||||
@ -37,9 +37,6 @@ class RegionDataProvider
|
||||
$this->reader = $reader;
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal to be removed in 5.0.
|
||||
*/
|
||||
public function getRegions()
|
||||
{
|
||||
return $this->reader->readEntry($this->path, 'meta', ['Regions']);
|
||||
@ -54,9 +51,6 @@ class RegionDataProvider
|
||||
return $this->reader->readEntry($this->path, $displayLocale, ['Names', $region]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal to be removed in 5.0.
|
||||
*/
|
||||
public function getNames($displayLocale = null)
|
||||
{
|
||||
if (null === $displayLocale) {
|
||||
|
@ -18,7 +18,7 @@ use Symfony\Component\Intl\Data\Bundle\Reader\BundleEntryReaderInterface;
|
||||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @internal
|
||||
* @internal to be removed in 5.0.
|
||||
*/
|
||||
class ScriptDataProvider
|
||||
{
|
||||
@ -37,9 +37,6 @@ class ScriptDataProvider
|
||||
$this->reader = $reader;
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal to be removed in 5.0.
|
||||
*/
|
||||
public function getScripts()
|
||||
{
|
||||
return $this->reader->readEntry($this->path, 'meta', ['Scripts']);
|
||||
@ -54,9 +51,6 @@ class ScriptDataProvider
|
||||
return $this->reader->readEntry($this->path, $displayLocale, ['Names', $script]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal to be removed in 5.0.
|
||||
*/
|
||||
public function getNames($displayLocale = null)
|
||||
{
|
||||
if (null === $displayLocale) {
|
||||
|
Reference in New Issue
Block a user