8000 feature #24014 [Translator] Remove deprecated feature (maidmaid) · symfony/symfony@3ff0ff0 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 3ff0ff0

Browse files
feature #24014 [Translator] Remove deprecated feature (maidmaid)
This PR was merged into the 4.0-dev branch. Discussion ---------- [Translator] Remove deprecated feature | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | yes | Deprecations? | no | Tests pass? | yes | Fixed tickets | / | License | MIT | Doc PR | / Commits ------- cce2dd1 Remove deprecated feature
2 parents d3630c1 + cce2dd1 commit 3ff0ff0

File tree

3 files changed

+1
-33
lines changed

3 files changed

+1
-33
lines changed

src/Symfony/Component/Translation/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ CHANGELOG
55
-----
66

77
* removed the backup feature of the `FileDumper` class
8+
* removed `Translat 8000 ionWriter::writeTranslations()` method
89

910
3.4.0
1011
-----

src/Symfony/Component/Translation/Tests/Writer/TranslationWriterTest.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,6 @@
1818

1919
class TranslationWriterTest extends TestCase
2020
{
21-
/**
22-
* @group legacy
23-
* @expectedDeprecation Method Symfony\Component\Translation\Writer\TranslationWriter::writeTranslations() is deprecated since version 3.4 and will be removed in 4.0. Use write() instead.
24-
*/
25-
public function testWriteTranslations()
26-
{
27-
$dumper = $this->getMockBuilder('Symfony\Component\Translation\Dumper\DumperInterface')->getMock();
28-
$dumper
29-
->expects($this->once())
30-
->method('dump');
31-
32-
$writer = new TranslationWriter();
33-
$writer->addDumper('test', $dumper);
34-
$writer->writeTranslations(new MessageCatalogue(array()), 'test');
35-
}
36-
3721
public function testWrite()
3822
{
3923
$dumper = $this->getMockBuilder('Symfony\Component\Translation\Dumper\DumperInterface')->getMock();

src/Symfony/Component/Translation/Writer/TranslationWriter.php

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -89,21 +89,4 @@ public function write(MessageCatalogue $catalogue, $format, $options = array())
8989
// save
9090
$dumper->dump($catalogue, $options);
9191
}
92-
93-
/**
94-
* Writes translation from the catalogue according to the selected format.
95-
*
96-
* @param MessageCatalogue $catalogue The message catalogue to write
97-
* @param string $format The format to use to dump the messages
98-
* @param array $options Options that are passed to the dumper
99-
*
100-
* @throws InvalidArgumentException
101-
*
102-
* @deprecated since 3.4 will be removed in 4.0. Use write instead.
103-
*/
104-
public function writeTranslations(MessageCatalogue $catalogue, $format, $options = array())
105-
{
106-
@trigger_error(sprintf('Method %s() is deprecated since version 3.4 and will be removed in 4.0. Use write() instead.', __METHOD__), E_USER_DEPRECATED);
107-
$this->write($catalogue, $format, $options);
108-
}
10992
}

0 commit comments

Comments
 (0)
0