Skip to content

Commit 8d463ee

Browse files
committed
Update the events page
1 parent 9ba4b91 commit 8d463ee

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

core/data-persisters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ This interface defines only 3 methods:
2222

2323
* `persist`: to create or update the given data
2424
* `delete`: to delete the given data
25-
* `support`: to tell if the given data xcan be handled by this specific data persister
25+
* `support`: to tell if the given data can be handled by this specific data persister
2626

2727
Here is an example implementation:
2828

core/events.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ Built-in event listeners are:
7676
Name | Event | Pre & Post hooks | Priority | Description
7777
------------------------------|--------------------|--------------------------------------|----------|--------------------------------------------------------------------------------------------------------------------------
7878
`AddFormatListener` | `kernel.request` | None | 7 | guess the best response format ([content negotiation](content-negotiation.md))
79-
`ReadListener` | `kernel.request` | `PRE_READ`, `POST_READ` | 4 | retrieve data from the persistence system using the [data providers](data-providers.md)
79+
`ReadListener` | `kernel.request` | `PRE_READ`, `POST_READ` | 4 | retrieve data from the persistence system using the [data providers](data-providers.md) (`GET`, `PUT`, `DELETE`)
8080
`DeserializeListener` | `kernel.request` | `PRE_DESERIALIZE`, `POST_DESERIALIZE`| 2 | deserialize data into a PHP entity (`GET`, `POST`, `DELETE`); update the entity retrieved using the data provider (`PUT`)
8181
`ValidateListener` | `kernel.view` | `PRE_VALIDATE`, `POST_VALIDATE` | 64 | [validate data](validation.md) (`POST`, `PUT`)
82-
`WriteListener` | `kernel.view` | `PRE_WRITE`, `POST_WRITE` | 32 | if using the Doctrine ORM, persist data (`POST`, `PUT`, `DELETE`)
82+
`WriteListener` | `kernel.view` | `PRE_WRITE`, `POST_WRITE` | 32 | persist changes in the persistence system using the [data persisters](data-persisters.md) (`POST`, `PUT`, `DELETE`)
8383
`SerializeListener` | `kernel.view` | `PRE_SERIALIZE`, `POST_SERIALIZE` | 16 | serialize the PHP entity in string [according to the request format](content-negotiation.md)
8484
`RespondListener` | `kernel.view` | `PRE_RESPOND`, `POST_RESPOND` | 8 | transform serialized to a `Symfony\Component\HttpFoundation\Response` instance
8585
`AddLinkHeaderListener` | `kernel.response` | None | 0 | add a `Link` HTTP header pointing to the Hydra documentation

0 commit comments

Comments
 (0)