webchemistry/form-factory

There is no license information available for the latest version (v2.0.0) of this package.

v2.0.0 2021-08-06 10:20 UTC

This package is auto-updated.

Last update: 2024-11-06 18:00:11 UTC


README

extensions:
	form.factory: WebChemistry\FormFactory\DI\FormFactoryExtension

form.factory:
	factory: FormFactory
use WebChemistry\FormFactory\FormFactoryInterface;

class FormService
{

	private FormFactoryInterface $formFactory;

	public function __construct(FormFactoryInterface $formFactory)
	{
		$this->formFactory = $formFactory;
	}

	public function createForm()
	{
		$form = $this->formFactory->create();

		// ...

		return $form;
	}

}