ソースを参照

Merge pull request #195 from adrienbrault/patch-1

Update Resources/doc/handlers.rst
Johannes 12 年 前
コミット
388647da48
1 ファイル変更7 行追加5 行削除
  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>