Browse Source

fixed doc formatting

Johannes M. Schmitt 12 years ago
parent
commit
14976b136d
1 changed files with 7 additions and 7 deletions
  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 
 The semantics are mainly the same as registering a regular Symfony2 event listener 
 except that you can to specify some additional attributes:
 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
 Events
 ------
 ------
@@ -25,7 +25,7 @@ Events
 
 
     Events are not dispatched by Symfony2's event dispatcher as such
     Events are not dispatched by Symfony2's event dispatcher as such
     you cannot register listeners with the ``kernel.event_listener`` tag,
     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
 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 
 data, and type. Listeners may modify the type that is being used for 
 serialization.
 serialization.
 
 
-**Event Object**: JMS\SerializerBundle\Serializer\EventDispatcher\PreSerializeEvent 
+**Event Object**: ``JMS\SerializerBundle\Serializer\EventDispatcher\PreSerializeEvent`` 
 
 
 serializer.post_serialize
 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
 to add additional data to an object that you normally do not save inside
 objects such as links.
 objects such as links.
 
 
-**Event Object**: JMS\SerializerBundle\Serializer\EventDispatcher\Event 
+**Event Object**: ``JMS\SerializerBundle\Serializer\EventDispatcher\Event``
 
 
 serializer.post_deserialize
 serializer.post_deserialize
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
 This is dispatched after a type is processed. You can use it to normalize 
 This is dispatched after a type is processed. You can use it to normalize 
 submitted data if you require external services for example.
 submitted data if you require external services for example.
 
 
-**Event Object**: JMS\SerializerBundle\Serializer\EventDispatcher\Event
+**Event Object**: ``JMS\SerializerBundle\Serializer\EventDispatcher\Event``