Skip to content

Commit efae71b

Browse files
authored
Merge pull request #525 from kbsali/fix-data-persister-typo
Fix data persister typo
2 parents 8d67228 + c3c4a2f commit efae71b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/data-persisters.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ To create a data persister, you have to implement the [`DataPersisterInterface`]
2323
This interface defines only 3 methods:
2424

2525
* `persist`: to create or update the given data
26-
* `delete`: to delete the given data
26+
* `remove`: to delete the given data
2727
* `support`: checks whether the given data is supported by this data persister
2828

2929
Here is an implementation example:
@@ -47,7 +47,7 @@ final class BlogPostDataPersister implements DataPersisterInterface
4747
return $data;
4848
}
4949

50-
public function delete($data): void
50+
public function remove($data)
5151
{
5252
// call your persistence layer to delete $data
5353
}

0 commit comments

Comments
 (0)