Added info about Form and Validator component changes.

This commit is contained in:
Joseph Bielawski 2011-06-24 02:29:28 -07:00
parent cca21a84e3
commit e993c87b08

View File

@ -9,10 +9,10 @@ timeline closely anyway.
beta5 to RC1 beta5 to RC1
------------ ------------
* renamed `Symfony\Bundle\FrameworkBundle\Command\Command` to * Renamed `Symfony\Bundle\FrameworkBundle\Command\Command` to
`Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand` `Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand`
* removed the routing `AnnotGlobLoader` class * Removed the routing `AnnotGlobLoader` class
* Some blocks in the Twig Form templates have been renamed to avoid * Some blocks in the Twig Form templates have been renamed to avoid
collisions: collisions:
@ -22,8 +22,9 @@ beta5 to RC1
* `options` to `widget_choice_options` * `options` to `widget_choice_options`
* Event changes: * Event changes:
* All listeners must now be tagged with `kernel.event_listener` instead of * All listeners must now be tagged with `kernel.event_listener` instead of
`kernel.listener`: `kernel.listener`.
* Kernel events are now properly prefixed with `kernel` instead of `core`: * Kernel events are now properly prefixed with `kernel` instead of `core`:
* Before: * Before:
@ -34,12 +35,22 @@ beta5 to RC1
<tag name="kernel.event_listener" event="kernel.request" method="onKernelRequest" /> <tag name="kernel.event_listener" event="kernel.request" method="onKernelRequest" />
Note: the method can of course remain as `onCoreRequest`, but renaming it Note: the method can of course remain as `onCoreRequest`, but renaming it
as well for consistency with future projects makes sense. as well for consistency with future projects makes sense.
* The `Symfony\Component\HttpKernel\CoreEvents` class has been renamed to * The `Symfony\Component\HttpKernel\CoreEvents` class has been renamed to
`Symfony\Component\HttpKernel\KernelEvents` `Symfony\Component\HttpKernel\KernelEvents`
* Form component changes:
* Added theming support to PHP Form templates,
* Added `single_text` option to `TimeType` and `DateTimeType` to be compliant
with `DateType`,
* Added `empty_value` option to `ChoiceType`, `DateTimeType`, `DateType`
and `TimeType`.
* `TrueValidator` and `FalseValidator` constraints validators no longer accepts any value as valid data.
beta4 to beta5 beta4 to beta5
-------------- --------------
@ -62,7 +73,7 @@ beta4 to beta5
* `Symfony\Component\HttpFoundation\File\File` has a new API: * `Symfony\Component\HttpFoundation\File\File` has a new API:
* It now extends `\splFileInfo`: * It now extends `\SplFileInfo`:
* former `getName()` equivalent is `getBasename()`, * former `getName()` equivalent is `getBasename()`,
* former `getDirectory()` equivalent is `getPath()`, * former `getDirectory()` equivalent is `getPath()`,
@ -94,11 +105,11 @@ beta4 to beta5
* The stack of Monolog handlers now bubbles the records by default. To stop * The stack of Monolog handlers now bubbles the records by default. To stop
the propagation you need to configure the bubbling explicitly. the propagation you need to configure the bubbling explicitly.
* Expanded the SerializerInterface, while reducing the number of public * Expanded the `SerializerInterface`, while reducing the number of public
methods in the Serializer class itself breaking BC and adding component methods in the Serializer class itself breaking BC and adding component
specific Exception classes. specific Exception classes.
* The FileType Form class has been heavily changed: * The `FileType` Form class has been heavily changed:
* The temporary storage has been removed. * The temporary storage has been removed.
@ -120,11 +131,11 @@ beta4 to beta5
Before: Before:
`TwigBundle:Form:div_layout.html.twig` TwigBundle:Form:div_layout.html.twig
After: After:
`form_div_layout.html.twig` form_div_layout.html.twig
* All settings regarding the cache warmers have been removed. * All settings regarding the cache warmers have been removed.