8000 Merge branch '5.1' into 5.2 · symfony/translation@2783bf9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2783bf9

Browse files
committed
Merge branch '5.1' into 5.2
* 5.1: [HttpFoundation] Drop int return type from parseFilesize() Added $translator->addLoader() bug symfony/symfony#39878 [doctrine-bridge] Add username to UserNameNotFoundException [Uid] Clarify the format returned by getTime() fix spelling Add check for constant in Curl client Revert #38614, add assert to avoid regression Fix container injection with TypedReference Fix problem when SYMFONY_PHPUNIT_VERSION is empty string value Update PHP CS Fixer config to v2.18
2 parents 84939fa + 36e9778 commit 2783bf9

File tree

1 file changed

+2
-0
lines changed
< B857 div class="d-flex flex-nowrap gap-2">

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ $ composer require symfony/translation
1212

1313
```php
1414
use Symfony\Component\Translation\Translator;
15+
use Symfony\Component\Translation\Loader\ArrayLoader;
1516

1617
$translator = new Translator('fr_FR');
18+
$translator->addLoader('array', new ArrayLoader());
1719
$translator->addResource('array', [
1820
'Hello World!' => 'Bonjour !',
1921
], 'fr_FR');

0 commit comments

Comments
 (0)
0