CoreFiles by mySites.guru
FormFactory.php34 lines, 755 bytes, from Joomla_4.0.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 3.10.0-alpha9
md5
ff3eb138dadbb681288f857f0a69885f
sha1
083d763abc855fd030324dec5af2f6f74623c7f3
sha256
f1006421ab6943aa5ff190a5174bf915e51162ea49dc5b534416033491590c31
<?php
/**
 * Joomla! Content Management System
 *
 * @copyright  Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\CMS\Form;

defined('_JEXEC') or die;

/**
 * Default factory for creating Form objects
 *
 * @since  __DEPLOY_VERSION__
 */
class FormFactory implements FormFactoryInterface
{
	/**
	 * Method to get an instance of a form.
	 *
	 * @param   string  $name     The name of the form.
	 * @param   array   $options  An array of form options.
	 *
	 * @return  Form
	 *
	 * @since   __DEPLOY_VERSION__
	 */
	public function createForm(string $name, array $options = array()): Form
	{
		return new Form($name, $options);
	}
}

No other release has this exact content. See every version of this file.