Total Complexity | 3 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class PrometheusMiddleware |
||
8 | { |
||
9 | private $prometheusExporter; |
||
10 | |||
11 | public function __construct(PrometheusExporter $prometheusExporter) |
||
12 | { |
||
13 | $this->prometheusExporter = $prometheusExporter; |
||
14 | } |
||
15 | |||
16 | /** |
||
17 | * Handle an incoming request. |
||
18 | * |
||
19 | * @param \Illuminate\Http\Request $request |
||
20 | * @param \Closure $next |
||
21 | * @return mixed |
||
22 | */ |
||
23 | public function handle($request, Closure $next) |
||
32 | } |
||
33 | } |
||
35 |