1 | <?php |
||
21 | final class TranslationLocaleProvider implements TranslationLocaleProviderInterface |
||
22 | { |
||
23 | /** |
||
24 | * @var RepositoryInterface |
||
25 | */ |
||
26 | private $localeRepository; |
||
27 | |||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | private $defaultLocaleCode; |
||
32 | |||
33 | /** |
||
34 | * @param RepositoryInterface $localeRepository |
||
35 | * @param string $defaultLocaleCode |
||
36 | */ |
||
37 | public function __construct(RepositoryInterface $localeRepository, $defaultLocaleCode) |
||
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | public function getDefinedLocalesCodes() |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | public function getDefaultLocaleCode() |
||
63 | } |
||
64 |