1 | <?php |
||
18 | class MultiLang |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * Application. |
||
23 | * |
||
24 | * @var \Illuminate\Foundation\Application |
||
25 | */ |
||
26 | protected $app; |
||
27 | |||
28 | /** |
||
29 | * Redirector. |
||
30 | * |
||
31 | * @var \Illuminate\Routing\Redirector |
||
32 | */ |
||
33 | protected $redirector; |
||
34 | |||
35 | /** |
||
36 | * Multilang. |
||
37 | * |
||
38 | * @var \Longman\LaravelMultiLang\Multilang |
||
39 | */ |
||
40 | protected $multilang; |
||
41 | |||
42 | /** |
||
43 | * MultiLang constructor. |
||
44 | * |
||
45 | * @param \Illuminate\Foundation\Application $app |
||
46 | * @param \Illuminate\Routing\Redirector $redirector |
||
47 | * @param \Longman\LaravelMultiLang\MultiLang $multilang |
||
48 | */ |
||
49 | 5 | public function __construct(Application $app, Redirector $redirector, MultiLangLib $multilang) |
|
55 | |||
56 | /** |
||
57 | * Handle an incoming request. |
||
58 | * |
||
59 | * @param \Illuminate\Http\Request $request |
||
60 | * @param \Closure $next |
||
61 | * @return mixed |
||
62 | */ |
||
63 | 5 | public function handle($request, Closure $next) |
|
81 | |||
82 | } |
||
83 |