From e1be16f8bb17744b07f22c2519c044bd25938a8e Mon Sep 17 00:00:00 2001 From: Olivier Dolbeau Date: Fri, 6 Dec 2019 11:57:29 +0100 Subject: [PATCH] Allow passing options when importing or exporting a catalogue --- Changelog.md | 1 + src/TransferableStorage.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Changelog.md b/Changelog.md index 513b418..9044d36 100644 --- a/Changelog.md +++ b/Changelog.md @@ -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 diff --git a/src/TransferableStorage.php b/src/TransferableStorage.php index 5eaadc1..4e3f913 100644 --- a/src/TransferableStorage.php +++ b/src/TransferableStorage.php @@ -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; }