Updated upgrade instructions.

This commit is contained in:
Sasa Stamenkovic 2012-04-13 16:02:15 +02:00
parent 7e21dd1c57
commit 6e90c508d6
1 changed files with 13 additions and 10 deletions

View File

@ -94,7 +94,7 @@
```
* The custom factories for the firewall configuration are now
registered during the build method of bundles instead of being registered
by the end-user. This means that you will you need to remove the 'factories'
by the end-user. This means that you will you need to remove the 'factories'
keys in your security configuration.
* The Firewall listener is now registered after the Router listener. This
@ -372,29 +372,29 @@
return isset($options['widget']) && 'single_text' === $options['widget'] ? 'text' : 'choice';
}
```
* The methods `getDefaultOptions()` and `getAllowedOptionValues()` of form
types no longer receive an option array.
You can specify options that depend on other options using closures instead.
Before:
```
public function getDefaultOptions(array $options)
{
$defaultOptions = array();
if ($options['multiple']) {
$defaultOptions['empty_data'] = array();
}
return $defaultOptions;
}
```
After:
```
public function getDefaultOptions()
{
@ -405,7 +405,7 @@
);
}
```
The second argument `$previousValue` does not have to be specified if not
needed.
@ -425,6 +425,9 @@
(or any other of the BIND events). In case you used the CallbackValidator
class, you should now pass the callback directly to `addEventListener`.
* Core translation messages are changed. Dot is added at the end of each message.
Overwritten core translations should be fixed if any. More info [here](https://github.com/symfony/symfony/issues/3379).
### Session
* Flash messages now return an array based on their type. The old method is