From 698ad060c51190e371c9d7c83c7891158d8e6e5f Mon Sep 17 00:00:00 2001 From: Thomas Decaux Date: Sat, 20 Jan 2018 12:49:03 +0100 Subject: [PATCH 1/2] Add methods used by TranslationUpdateCommand ``Symfony\Bundle\FrameworkBundle\Command\TranslationUpdateCommand`` uses ``TranslationWriterInterface`` methods ``disableBackup`` and ``getFormats`` not defined by the interface but by the implementation ``Symfony\Component\Translation\Writer\TranslationWriter``. --- .../Writer/TranslationWriterInterface.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Symfony/Component/Translation/Writer/TranslationWriterInterface.php b/src/Symfony/Component/Translation/Writer/TranslationWriterInterface.php index 992ab769a0d59..222a434431793 100644 --- a/src/Symfony/Component/Translation/Writer/TranslationWriterInterface.php +++ b/src/Symfony/Component/Translation/Writer/TranslationWriterInterface.php @@ -31,4 +31,16 @@ interface TranslationWriterInterface * @throws InvalidArgumentException */ public function write(MessageCatalogue $catalogue, $format, $options = array()); + + /** + * Disables dumper backup. + */ + public function disableBackup(); + + /** + * Obtains the list of supported formats. + * + * @return array + */ + public function getFormats(); } From 73592eed8fa46dd2b7cbbc8cd856d5ff7943ddc4 Mon Sep 17 00:00:00 2001 From: Thomas Decaux Date: Mon, 22 Jan 2018 13:30:00 +0100 Subject: [PATCH 2/2] fix code style --- .../Translation/Writer/TranslationWriterInterface.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/Translation/Writer/TranslationWriterInterface.php b/src/Symfony/Component/Translation/Writer/TranslationWriterInterface.php index 222a434431793..33b6a71b2d404 100644 --- a/src/Symfony/Component/Translation/Writer/TranslationWriterInterface.php +++ b/src/Symfony/Component/Translation/Writer/TranslationWriterInterface.php @@ -31,12 +31,12 @@ interface TranslationWriterInterface * @throws InvalidArgumentException */ public function write(MessageCatalogue $catalogue, $format, $options = array()); - + /** * Disables dumper backup. */ public function disableBackup(); - + /** * Obtains the list of supported formats. *