1 | <?php |
||
12 | class QrCodeCacheMiddleware implements MiddlewareInterface |
||
13 | { |
||
14 | /** |
||
15 | * @var Cache |
||
16 | */ |
||
17 | private $cache; |
||
18 | |||
19 | /** |
||
20 | * QrCodeCacheMiddleware constructor. |
||
21 | * @param Cache $cache |
||
22 | * |
||
23 | * @Inject({Cache::class}) |
||
24 | */ |
||
25 | 2 | public function __construct(Cache $cache) |
|
29 | |||
30 | /** |
||
31 | * Process an incoming server request and return a response, optionally delegating |
||
32 | * to the next middleware component to create the response. |
||
33 | * |
||
34 | * @param Request $request |
||
35 | * @param DelegateInterface $delegate |
||
36 | * |
||
37 | * @return Response |
||
38 | */ |
||
39 | 2 | public function process(Request $request, DelegateInterface $delegate) |
|
60 | } |
||
61 |