Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6159a9e

Browse filesBrowse files
committed
add the Phrase translation provider to the UnsupportedSchemeException
1 parent 4d2480c commit 6159a9e
Copy full SHA for 6159a9e

File tree

Expand file treeCollapse file tree

2 files changed

+7
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+7
-0
lines changed

‎src/Symfony/Component/Translation/Exception/UnsupportedSchemeException.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Translation/Exception/UnsupportedSchemeException.php
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ class UnsupportedSchemeException extends LogicException
2929
'class' => Bridge\Lokalise\LokaliseProviderFactory::class,
3030
'package' => 'symfony/lokalise-translation-provider',
3131
],
32+
'phrase' => [
33+
'class' => Bridge\Phrase\PhraseProviderFactory::class,
34+
'package' => 'symfony/phrase-translation-provider',
35+
],
3236
];
3337

3438
public function __construct(Dsn $dsn, string $name = null, array $supported = [])

‎src/Symfony/Component/Translation/Tests/Exception/UnsupportedSchemeExceptionTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Translation/Tests/Exception/UnsupportedSchemeExceptionTest.php
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use Symfony\Component\Translation\Bridge\Crowdin\CrowdinProviderFactory;
1717
use Symfony\Component\Translation\Bridge\Loco\LocoProviderFactory;
1818
use Symfony\Component\Translation\Bridge\Lokalise\LokaliseProviderFactory;
19+
use Symfony\Component\Translation\Bridge\Phrase\PhraseProviderFactory;
1920
use Symfony\Component\Translation\Exception\UnsupportedSchemeException;
2021
use Symfony\Component\Translation\Provider\Dsn;
2122

@@ -31,6 +32,7 @@ public static function setUpBeforeClass(): void
3132
CrowdinProviderFactory::class => false,
3233
LocoProviderFactory::class => false,
3334
LokaliseProviderFactory::class => false,
35+
PhraseProviderFactory::class => false,
3436
]);
3537
}
3638

@@ -52,6 +54,7 @@ public static function messageWhereSchemeIsPartOfSchemeToPackageMapProvider(): \
5254
yield ['crowdin', 'symfony/crowdin-translation-provider'];
5355
yield ['loco', 'symfony/loco-translation-provider'];
5456
yield ['lokalise', 'symfony/lokalise-translation-provider'];
57+
yield ['phrase', 'symfony/phrase-translation-provider'];
5558
}
5659

5760
/**

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.