Commit a7a3aea6 authored by Fabien Potencier's avatar Fabien Potencier

updated docs and changelog

parent 43cd9450
......@@ -4,7 +4,7 @@ Changelog
1.2.2 (2014-XX-XX)
------------------
* n/a
* added form.types to the Form provider
1.2.1 (2014-07-01)
------------------
......
......@@ -166,6 +166,14 @@ form by adding constraints on the fields::
))
->getForm();
You can register form types by extending ``form.types``::
$app['form.types'] = $app->share($app->extend('form.types', function ($types) use ($app) {
$types[] = new YourFormType();
return $types;
}));
You can register form extensions by extending ``form.extensions``::
$app['form.extensions'] = $app->share($app->extend('form.extensions', function ($extensions) use ($app) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment