Skip to content

Commit e2eaa60

Browse files
[Contracts] add TranslatableInterface
1 parent 97f7a0d commit e2eaa60

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

TranslatableInterface.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Symfony\Contracts\Translation;
13+
14+
/**
15+
* @author Nicolas Grekas <[email protected]>
16+
*/
17+
interface TranslatableInterface
18+
{
19+
public function trans(TranslatorInterface $translator, string $locale = null): string;
20+
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"minimum-stability": "dev",
2828
"extra": {
2929
"branch-alias": {
30-
"dev-master": "2.2-dev"
30+
"dev-master": "2.3-dev"
3131
},
3232
"thanks": {
3333
"name": "symfony/contracts",

0 commit comments

Comments
 (0)