ApplicationBootstrap: Remove deprecated method `listLocales()`
This commit is contained in:
parent
b1f723318f
commit
479bec6fb4
|
@ -766,19 +766,4 @@ abstract class ApplicationBootstrap
|
|||
$localedir = $this->getLocaleDir();
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue