Skip to content

Commit ba033be

Browse files
author
Harrison Heck
committed
Updated README for new release.
1 parent 95b59cb commit ba033be

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

README.md

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ Dynamic Form Bundle
1010
1111
Getting Started
1212
-------
13-
This plugin requires Symfony `2.6.*`
13+
This plugin requires Symfony `^2.8|^3.0`
1414

1515
The recommended way to install Linio Dynamic Form Bundle is [through composer](http://getcomposer.org).
1616

1717
```JSON
1818
{
1919
"require": {
20-
"linio/dynamic-form-bundle": "~1.0"
20+
"linio/dynamic-form-bundle": "~2.0"
2121
}
2222
}
2323
```
@@ -30,7 +30,7 @@ To run the test suite, you need install the dependencies via composer, then
3030
run PHPUnit.
3131

3232
$ composer install
33-
$ phpunit
33+
$ vendor/bin/phpunit
3434

3535
Usage
3636
-----
@@ -51,15 +51,15 @@ Create your form on the Configuration File. The YAML structure for the Form shou
5151
| \---Field Transformer
5252
| \---Field Validators
5353
```
54-
The method `createform()` takes the form configuration named `new_user` from `app/config/config.yml`.
54+
The method `createform()` takes the form configuration named `new_user` from `app/config/config.yml`.
5555

5656
```php
5757
use Linio\DynamicFormBundle\DynamicFormAware;
5858

5959
class TestController
6060
{
6161
use DynamicFormAware;
62-
62+
6363
public function testAction()
6464
{
6565
$form = $this->getDynamicFormFactory()->createForm('new_user');
@@ -99,11 +99,11 @@ When using transformers write both the class where it is defined and the calls y
9999
```yaml
100100
dynamic_form:
101101
new_user:
102-
first_name:
102+
birthday:
103103
enabled: true
104104
type: text
105105
transformer:
106-
class: 'Linio\Frontend\CustomerBundle\Form\DataTransformer\BornDateTransformer'
106+
class: 'Linio\Frontend\CustomerBundle\Form\DataTransformer\BirthdayTransformer'
107107
calls:
108108
- [setUserFormat, ['d/m/Y']]
109109
- [setInputFormat, ['Y-m-d']]
@@ -127,7 +127,3 @@ dynamic_form:
127127
max: 50
128128
```
129129
130-
## Release History
131-
132-
* 2015-05-21   v1.0   First Version
133-
* 2015-06-11   v1.0.1   Updated getJsonConfiguration() so it can receive form name parameter

0 commit comments

Comments
 (0)