1 | <?php |
||
8 | class LangBundler |
||
9 | { |
||
10 | /** |
||
11 | * BundleMap instance. |
||
12 | * |
||
13 | * @var BundleMap |
||
14 | */ |
||
15 | protected $bundleMap; |
||
16 | |||
17 | /** |
||
18 | * Translator instance. |
||
19 | * |
||
20 | * @var Translator |
||
21 | */ |
||
22 | protected $translator; |
||
23 | |||
24 | /** |
||
25 | * Construct. |
||
26 | */ |
||
27 | public function __construct(BundleMap $bundleMap, Translator $translator) |
||
34 | |||
35 | /** |
||
36 | * Translate the given message. |
||
37 | * |
||
38 | * @param string $id |
||
39 | * @param array $parameters |
||
40 | * @param string $locale |
||
41 | * |
||
42 | * @return \Illuminate\Support\Collection |
||
43 | */ |
||
44 | public function trans($id, array $parameters = [], $locale = null) |
||
54 | } |
||
55 |