PHP 8.1.33
Preview: LanguageFactory.php Size: 719 B
/home/jambtst2015/9jahookups.com/libraries/src/Language/LanguageFactory.php

<?php
/**
 * Joomla! Content Management System
 *
 * @copyright  (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
 * @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);
	}
}

Directory Contents

Dirs: 0 × Files: 9

Name Size Perms Modified Actions
5.20 KB lrw-r--r-- 2021-08-23 19:07:08
Edit Download
1.00 KB lrw-r--r-- 2021-08-23 19:07:08
Edit Download
26.21 KB lrw-r--r-- 2021-08-23 19:07:08
Edit Download
719 B lrw-r--r-- 2021-08-23 19:07:08
Edit Download
670 B lrw-r--r-- 2021-08-23 19:07:08
Edit Download
17.63 KB lrw-r--r-- 2021-08-23 19:07:08
Edit Download
3.00 KB lrw-r--r-- 2021-08-23 19:07:08
Edit Download
11.48 KB lrw-r--r-- 2021-08-23 19:07:08
Edit Download
4.96 KB lrw-r--r-- 2021-08-23 19:07:08
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).