Total Complexity | 4 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
10 | class CacheMiddleware |
||
11 | { |
||
12 | /** |
||
13 | * @var \Swis\LaravelStaticRequestCache\StaticRequestCache |
||
14 | */ |
||
15 | protected $staticRequestCache; |
||
16 | |||
17 | /** |
||
18 | * @param \Swis\LaravelStaticRequestCache\StaticRequestCache $staticRequestCache |
||
19 | */ |
||
20 | 15 | public function __construct(StaticRequestCache $staticRequestCache) |
|
21 | { |
||
22 | 15 | $this->staticRequestCache = $staticRequestCache; |
|
23 | 15 | } |
|
24 | |||
25 | /** |
||
26 | * Handle an incoming request. |
||
27 | * |
||
28 | * @param Request $request |
||
29 | * @param \Closure $next |
||
30 | * @return mixed |
||
31 | */ |
||
32 | 5 | public function handle($request, Closure $next) |
|
33 | { |
||
34 | 5 | return $next($request); |
|
35 | } |
||
36 | |||
37 | /** |
||
38 | * @param \Illuminate\Http\Request $request |
||
39 | * @param \Symfony\Component\HttpFoundation\Response $response |
||
40 | */ |
||
41 | 10 | public function terminate(Request $request, Response $response) |
|
45 | } |
||
46 | 10 | } |
|
47 | } |
||
48 |