1 | <?php |
||
18 | class QrCodeAction implements MiddlewareInterface |
||
19 | { |
||
20 | /** |
||
21 | * @var RouterInterface |
||
22 | */ |
||
23 | private $router; |
||
24 | /** |
||
25 | * @var UrlShortenerInterface |
||
26 | */ |
||
27 | private $urlShortener; |
||
28 | /** |
||
29 | * @var LoggerInterface |
||
30 | */ |
||
31 | private $logger; |
||
32 | |||
33 | /** |
||
34 | * QrCodeAction constructor. |
||
35 | * @param RouterInterface $router |
||
36 | * @param UrlShortenerInterface $urlShortener |
||
37 | * @param LoggerInterface $logger |
||
38 | * |
||
39 | * @Inject({RouterInterface::class, UrlShortener::class, "Logger_Shlink"}) |
||
40 | */ |
||
41 | 3 | public function __construct( |
|
50 | |||
51 | /** |
||
52 | * Process an incoming server request and return a response, optionally delegating |
||
53 | * to the next middleware component to create the response. |
||
54 | * |
||
55 | * @param Request $request |
||
56 | * @param DelegateInterface $delegate |
||
57 | * |
||
58 | * @return Response |
||
59 | */ |
||
60 | 3 | public function process(Request $request, DelegateInterface $delegate) |
|
82 | |||
83 | /** |
||
84 | * @param Request $request |
||
85 | * @return int |
||
86 | */ |
||
87 | 1 | protected function getSizeParam(Request $request) |
|
96 | } |
||
97 |