Explorar o código

Merge pull request #195 from adrienbrault/patch-1

Update Resources/doc/handlers.rst
Johannes %!s(int64=12) %!d(string=hai) anos
pai
achega
388647da48
Modificáronse 1 ficheiros con 7 adicións e 5 borrados
  1. 7 5
      Resources/doc/handlers.rst

+ 7 - 5
Resources/doc/handlers.rst

@@ -32,10 +32,12 @@ easier to share with other users, and easier to set-up in general:
         public static function getSubscribingMethods()
         {
             return array(
-                'direction' => GraphNavigator::DIRECTION_SERIALIZATION,
-                'format' => 'json',
-                'type' => 'DateTime',
-                'serializeDateTimeToJson',
+                array(
+                    'direction' => GraphNavigator::DIRECTION_SERIALIZATION,
+                    'format' => 'json',
+                    'type' => 'DateTime',
+                    'method' => 'serializeDateTimeToJson',
+                ),
             );
         }
         
@@ -47,7 +49,7 @@ easier to share with other users, and easier to set-up in general:
 
 .. code-block :: xml
 
-    <service id="my_handler" class="MyHandler" public="false">
+    <service id="my_handler" class="MyHandler">
         <tag name="jms_serializer.subscribing_handler" />
     </service>