ApplicationBootstrap: Remove deprecated method `listLocales()`

This commit is contained in:
Sukhwinder Dhillon 2022-05-02 15:14:44 +02:00 committed by Johannes Meyer
parent b1f723318f
commit 479bec6fb4
1 changed files with 0 additions and 15 deletions

View File

@ -766,19 +766,4 @@ abstract class ApplicationBootstrap
$localedir = $this->getLocaleDir(); $localedir = $this->getLocaleDir();
return $localedir !== false && file_exists($localedir) && is_dir($localedir); return $localedir !== false && file_exists($localedir) && is_dir($localedir);
} }
/**
* List all available locales
*
* @return array Locale list
*
* @deprecated Use {@see \ipl\I18n\GettextTranslator::listLocales()} instead
*/
public function listLocales()
{
/** @var GettextTranslator $translator */
$translator = StaticTranslator::$instance;
return $translator->listLocales();
}
} }