1 | <?php |
||
8 | class TranslationsNotFoundListener |
||
9 | { |
||
10 | /** @var DataCollectorTranslator */ |
||
11 | protected $dataCollectorTranslator; |
||
12 | |||
13 | /** @var bool */ |
||
14 | protected $allowFallbacks = false; |
||
15 | |||
16 | /** |
||
17 | * @param DataCollectorTranslator $dataCollectorTranslator |
||
18 | */ |
||
19 | public function __construct(DataCollectorTranslator $dataCollectorTranslator) |
||
23 | |||
24 | /** |
||
25 | * @param bool $allow |
||
26 | * @return $this |
||
27 | */ |
||
28 | public function setAllowFallbacks($allow) |
||
34 | |||
35 | /** |
||
36 | * @throws TranslationsNotFoundException |
||
37 | */ |
||
38 | public function assertAllTranslationsFound() |
||
58 | } |
||
59 |