Skip to content

Commit 8d350c8

Browse files
Olivier DolbeauNyholm
authored andcommitted
Allow passing options when importing or exporting a catalogue (#24)
1 parent 3dc9a2b commit 8d350c8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ The change log describes what is "Added", "Removed", "Changed" or "Fixed" betwee
66

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

1011
## 1.0.0
1112

src/TransferableStorage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ interface TransferableStorage
2323
/**
2424
* Get messages from the storage into the $catalogue.
2525
*/
26-
public function export(MessageCatalogueInterface $catalogue): void;
26+
public function export(MessageCatalogueInterface $catalogue, array $options = []): void;
2727

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

0 commit comments

Comments
 (0)