Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions core/data-persisters.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ To create a data persister, you have to implement the [`DataPersisterInterface`]
This interface defines only 3 methods:

* `persist`: to create or update the given data
* `delete`: to delete the given data
* `remove`: to delete the given data
* `support`: checks whether the given data is supported by this data persister

Here is an implementation example:
Expand All @@ -47,7 +47,7 @@ final class BlogPostDataPersister implements DataPersisterInterface
return $data;
}

public function delete($data): void
public function remove($data)
{
// call your persistence layer to delete $data
}
Expand Down