Browse Source

merged branch stloyd/patch-1 (PR #1425)

Commits
-------

e993c87 Added info about Form and Validator component changes.

Discussion
----------

Adjusted UPDATE file

Added info about Form and Validator component changes.
Fabien Potencier 14 years ago
parent
commit
5370c15e52
1 changed files with 21 additions and 10 deletions
  1. 21 10
      UPDATE.md

+ 21 - 10
UPDATE.md

@@ -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
-    as well for consistency with future projects makes sense.
+        Note: the method can of course remain as `onCoreRequest`, but renaming it
+        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.