| 1 | <?php |
||
| 11 | final class LazyMiddleware |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var ContainerInterface |
||
| 15 | */ |
||
| 16 | private $container; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | private $serviceId; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param ContainerInterface $container |
||
| 25 | * @param string $serviceId |
||
| 26 | */ |
||
| 27 | 2 | public function __construct(ContainerInterface $container, string $serviceId) |
|
| 32 | |||
| 33 | /** |
||
| 34 | * @param Request $request |
||
| 35 | * @param Response $response |
||
| 36 | * @param callable|null $next |
||
| 37 | * |
||
| 38 | * @return Response |
||
| 39 | */ |
||
| 40 | 2 | public function __invoke(Request $request, Response $response, callable $next = null) |
|
| 46 | } |
||
| 47 |