CoreFiles by mySites.guru
LanguageFactory.php34 lines, 731 bytes, from Joomla_4.0.0-alpha6-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha5
md5
dae45f01ab70aedc62baf43448fc67fc
sha1
c5fba06579f8f5b37cb1b83493b8513219e4a3d5
sha256
ad882796461b80e95a226632fb8cdf6b86a5079e3626550f6ce7681b3c0c7e05
<?php
/**
 * Joomla! Content Management System
 *
 * @copyright  Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\CMS\Language;

defined('_JEXEC') or die;

/**
 * Default factory for creating language objects
 *
 * @since  4.0.0
 */
class LanguageFactory implements LanguageFactoryInterface
{
	/**
	 * Method to get an instance of a language.
	 *
	 * @param   string   $lang   The language to use
	 * @param   boolean  $debug  The debug mode
	 *
	 * @return  Language
	 *
	 * @since   4.0.0
	 */
	public function createLanguage($lang, $debug = false): Language
	{
		return new Language($lang, $debug);
	}
}

The same content is in 2 releases, Joomla 4.0.0-alpha5 to 4.0.0-alpha6. See them all, or every version of this file.