瀏覽代碼

fixed doc formatting

Johannes M. Schmitt 12 年之前
父節點
當前提交
14976b136d
共有 1 個文件被更改,包括 7 次插入7 次删除
  1. 7 7
      Resources/doc/event_system.rst

+ 7 - 7
Resources/doc/event_system.rst

@@ -14,9 +14,9 @@ in order to register it.
 The semantics are mainly the same as registering a regular Symfony2 event listener 
 except that you can to specify some additional attributes:
 
-    - *format*: The format that you want to listen to; defaulting to all formats.
-    - *type*: The type name that you want to listen to; defaulting to all types.
-    - *direction*: The direction (serialization, or deserialization); defaulting to both.
+- *format*: The format that you want to listen to; defaulting to all formats.
+- *type*: The type name that you want to listen to; defaulting to all types.
+- *direction*: The direction (serialization, or deserialization); defaulting to both.
 
 Events
 ------
@@ -25,7 +25,7 @@ Events
 
     Events are not dispatched by Symfony2's event dispatcher as such
     you cannot register listeners with the ``kernel.event_listener`` tag,
-    or the @DI\Observe annotation. Please see above.
+    or the ``@DI\Observe`` annotation. Please see above.
 
 serializer.pre_serialize
 ~~~~~~~~~~~~~~~~~~~~~~~~
@@ -33,7 +33,7 @@ This is dispatched before a type is visited. You have access to the visitor,
 data, and type. Listeners may modify the type that is being used for 
 serialization.
 
-**Event Object**: JMS\SerializerBundle\Serializer\EventDispatcher\PreSerializeEvent 
+**Event Object**: ``JMS\SerializerBundle\Serializer\EventDispatcher\PreSerializeEvent`` 
 
 serializer.post_serialize
 ~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -41,11 +41,11 @@ This is dispatched right before a type is left. You can for example use this
 to add additional data to an object that you normally do not save inside
 objects such as links.
 
-**Event Object**: JMS\SerializerBundle\Serializer\EventDispatcher\Event 
+**Event Object**: ``JMS\SerializerBundle\Serializer\EventDispatcher\Event``
 
 serializer.post_deserialize
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
 This is dispatched after a type is processed. You can use it to normalize 
 submitted data if you require external services for example.
 
-**Event Object**: JMS\SerializerBundle\Serializer\EventDispatcher\Event
+**Event Object**: ``JMS\SerializerBundle\Serializer\EventDispatcher\Event``