| 1 | <?php |
||
| 19 | class MultiLang |
||
| 20 | { |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Application. |
||
| 24 | * |
||
| 25 | * @var \Illuminate\Foundation\Application |
||
| 26 | */ |
||
| 27 | protected $app; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Redirector. |
||
| 31 | * |
||
| 32 | * @var \Illuminate\Routing\Redirector |
||
| 33 | */ |
||
| 34 | protected $redirector; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Multilang. |
||
| 38 | * |
||
| 39 | * @var \Longman\LaravelMultiLang\Multilang |
||
| 40 | */ |
||
| 41 | protected $multilang; |
||
| 42 | |||
| 43 | |||
| 44 | 4 | public function __construct(Application $app, Redirector $redirector, MultiLangLib $multilang) |
|
| 50 | |||
| 51 | /** |
||
| 52 | * Handle an incoming request. |
||
| 53 | * |
||
| 54 | * @param \Illuminate\Http\Request $request |
||
| 55 | * @param \Closure $next |
||
| 56 | * @return mixed |
||
| 57 | */ |
||
| 58 | 4 | public function handle($request, Closure $next) |
|
| 72 | |||
| 73 | } |
||
| 74 |