/**
* Create a language object
*
* @return Language object
*
* @see Language
* @since 1.7.0
* @deprecated 5.0 Load the language service from the dependency injection container or via $app->getLanguage()
*/
protected static function createLanguage()
{
@trigger_error(sprintf('%1$s() is deprecated. Load the language from the dependency injection container or via %2$s::getApplication()->getLanguage().', __METHOD__, __CLASS__), E_USER_DEPRECATED);
$conf = self::getConfig();
$locale = $conf->get('language');
$debug = $conf->get('debug_lang');
$lang = self::getContainer()->get(LanguageFactoryInterface::class)->createLanguage($locale, $debug);
return $lang;
}