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|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 | * @deprecated Use read instead. |
|
48 | */ |
||
49 | 2 | public function loadMessages($directory, MessageCatalogue $catalogue) |
|
53 | |||
54 | 2 | /** |
|
55 | 2 | * Loads translation messages from a directory to the catalogue. |
|
56 | 2 | * |
|
57 | 2 | * @param string $directory the directory to look into |
|
58 | 2 | * @param MessageCatalogue $catalogue the catalogue |
|
59 | 2 | */ |
|
60 | 2 | public function read($directory, MessageCatalogue $catalogue) |
|
74 | |||
75 | protected function getTranslationFiles($directory, $patterns) |
||
86 | |||
87 | protected function getDomainFromFilename($filename, $patterns) |
||
99 | |||
100 | protected function getTranslationFilePatterns(MessageCatalogue $catalogue) |
||
113 | } |
||
114 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.