Extractor/TranslationExtractor.php 1 location
|
@@ 90-99 (lines=10) @@
|
87 |
|
* |
88 |
|
* @return LoaderInterface |
89 |
|
*/ |
90 |
|
private function getLoader($format) |
91 |
|
{ |
92 |
|
$service = sprintf('translation.loader.%s', $format); |
93 |
|
|
94 |
|
if (!$this->container->has($service)) { |
95 |
|
throw new \InvalidArgumentException(sprintf('Unable to find Symfony Translation loader for format "%s"', $format)); |
96 |
|
} |
97 |
|
|
98 |
|
return $this->container->get($service); |
99 |
|
} |
100 |
|
} |
101 |
|
|
Writer/MessageCatalogueWriter.php 1 location
|
@@ 52-61 (lines=10) @@
|
49 |
|
* |
50 |
|
* @throws \InvalidArgumentException |
51 |
|
*/ |
52 |
|
private function getDumper($format) |
53 |
|
{ |
54 |
|
$service = sprintf('translation.dumper.%s', $format); |
55 |
|
|
56 |
|
if (!$this->container->has($service)) { |
57 |
|
throw new \InvalidArgumentException(sprintf('Unable to find Symfony Translation dumper for format "%s"', $format)); |
58 |
|
} |
59 |
|
|
60 |
|
return $this->container->get($service); |
61 |
|
} |
62 |
|
|
63 |
|
/** |
64 |
|
* Returns translation path |