Skip to content

Commit

Permalink
Allow passing options when importing or exporting a catalogue (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Dolbeau authored and Nyholm committed Dec 6, 2019
1 parent 3dc9a2b commit 8d350c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ The change log describes what is "Added", "Removed", "Changed" or "Fixed" betwee

Drop support og php < 7.2
Add strict I/O type hinting
Allow passing options when exporting / importing a catalogue

## 1.0.0

Expand Down
4 changes: 2 additions & 2 deletions src/TransferableStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ interface TransferableStorage
/**
* Get messages from the storage into the $catalogue.
*/
public function export(MessageCatalogueInterface $catalogue): void;
public function export(MessageCatalogueInterface $catalogue, array $options = []): void;

/**
* Populate the storage with all the messages in $catalogue. This action
* should be considered as a "force merge". Existing messages in the storage
* will be overwritten but no message will be removed.
*/
public function import(MessageCatalogueInterface $catalogue): void;
public function import(MessageCatalogueInterface $catalogue, array $options = []): void;
}

0 comments on commit 8d350c8

Please sign in to comment.