1 | <?php |
||
19 | class TranslationLoader implements TranslationLoaderInterface |
||
20 | { |
||
21 | /** |
||
22 | * @var LoaderInterface |
||
23 | */ |
||
24 | private $loader; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | private $format; |
||
30 | |||
31 | /** |
||
32 | * @param LoaderInterface $loader |
||
33 | * @param string $format |
||
34 | */ |
||
35 | 2 | public function __construct(LoaderInterface $loader, $format) |
|
40 | |||
41 | /** |
||
42 | * Loads translation messages from a directory to the catalogue. |
||
43 | * |
||
44 | * @param string $directory the directory to look into |
||
45 | * @param MessageCatalogue $catalogue the catalogue |
||
46 | */ |
||
47 | 2 | public function loadMessages($directory, MessageCatalogue $catalogue) |
|
62 | } |
||
63 |