8000 [Intl][4.3] Cleanup internal api by ro0NL · Pull Request #31675 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
* @internal
* @internal to be removed in 5.0.
*/
class LanguageDataProvider
{
Expand All @@ -37,17 +37,11 @@ public function __construct(string $path, BundleEntryReaderInterface $reader)
$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']);
Expand All @@ -62,9 +56,6 @@ public function getName($language, $displayLocale = null)
return $this->reader->readEntry($this->path, $displayLocale, ['Names', $language]);
}

/**
* @internal to be removed in 5.0.
*/
public function getNames($displayLocale = null)
{
if (null === $displayLocale) {
Expand All @@ -83,9 +74,6 @@ public function getNames($displayLocale = null)
return $languages;
}

/**
* @internal to be removed in 5.0.
*/
public function getAlpha3Code($language)
{
return $this->reader->readEntry($this->path, 'meta', ['Alpha2ToAlpha3', $language]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
* @internal
* @internal to be removed in 5.0.
*/
class RegionDataProvider
{
Expand All @@ -37,9 +37,6 @@ public function __construct(string $path, BundleEntryReaderInterface $reader)
$this->reader = $reader;
}

/**
* @internal to be removed in 5.0.
*/
public function getRegions()
{
return $this->reader->readEntry($this->path, 'meta', ['Regions']);
Expand All @@ -54,9 +51,6 @@ public function getName($region, $displayLocale = null)
return $this->reader->readEntry($this->path, $displayLocale, ['Names', $region]);
}

/**
* @internal to be removed in 5.0.
*/
public function getNames($displayLocale = null)
{
if (null === $displayLocale) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
* @internal
* @internal to be removed in 5.0.
*/
class ScriptDataProvider
{
Expand All @@ -37,9 +37,6 @@ public function __construct(string $path, BundleEntryReaderInterface $reader)
$this->reader = $reader;
}

/**
* @internal to be removed in 5.0.
*/
public function getScripts()
{
return $this->reader->readEntry($this->path, 'meta', ['Scripts']);
Expand All @@ -54,9 +51,6 @@ public function getName($script, $displayLocale = null)
return $this->reader->readEntry($this->path, $displayLocale, ['Names', $script]);
}

/**
* @internal to be removed in 5.0.
*/
public function getNames($displayLocale = null)
{
if (null === $displayLocale) {
Expand Down
0