Total Complexity | 4 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
12 | class WhitelistMiddleware |
||
13 | { |
||
14 | /** |
||
15 | * @var Application |
||
16 | */ |
||
17 | private $application; |
||
18 | /** |
||
19 | * @var Repository |
||
20 | */ |
||
21 | private $config; |
||
22 | |||
23 | /** |
||
24 | * IpMiddleware constructor. |
||
25 | * |
||
26 | * @param Application $application |
||
27 | * @param Repository $config |
||
28 | */ |
||
29 | public function __construct(Application $application, Repository $config) |
||
30 | { |
||
31 | $this->application = $application; |
||
32 | $this->config = $config; |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * Handle an incoming request. |
||
37 | * |
||
38 | * @param Request $request |
||
39 | * @param Closure $next |
||
40 | * @param array $allowedIp |
||
41 | * |
||
42 | * @return mixed |
||
43 | */ |
||
44 | public function handle($request, Closure $next, ...$allowedIp) |
||
55 | } |
||
56 | } |
||
57 |