Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/webchemistry/form-factory
https://github.com/webchemistry/form-factory
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/webchemistry/form-factory
- Owner: WebChemistry
- Created: 2020-12-12T12:50:35.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-08-06T10:21:21.000Z (over 3 years ago)
- Last Synced: 2024-11-16T16:48:47.265Z (about 2 months ago)
- Language: PHP
- Size: 363 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## Usage
```neon
extensions:
form.factory: WebChemistry\FormFactory\DI\FormFactoryExtensionform.factory:
factory: FormFactory
``````php
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;
}}
```