Sfoglia il codice sorgente

Update Resources/doc/handlers.rst

Adrien Brault 12 anni fa
parent
commit
fe38ff0402
1 ha cambiato i file con 7 aggiunte e 5 eliminazioni
  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>