| @@ 86-97 (lines=12) @@ | ||
| 83 | * |
|
| 84 | * @return MiddlewareHandler |
|
| 85 | */ |
|
| 86 | private function lazyLoad($index) |
|
| 87 | { |
|
| 88 | if (isset($this->middleware_handler_ids[$index])) { |
|
| 89 | $handler = $this->container->get($this->middleware_handler_ids[$index]); |
|
| 90 | ||
| 91 | if ($handler instanceof MiddlewareHandler) { |
|
| 92 | return $handler; |
|
| 93 | } |
|
| 94 | } |
|
| 95 | ||
| 96 | return null; |
|
| 97 | } |
|
| 98 | } |
|
| 99 | ||
| @@ 77-88 (lines=12) @@ | ||
| 74 | * |
|
| 75 | * @return MiddlewareHandler |
|
| 76 | */ |
|
| 77 | private function lazyLoad($index) |
|
| 78 | { |
|
| 79 | if ($this->container instanceof ContainerInterface && isset($this->middleware_handler_ids[$index])) { |
|
| 80 | $handler = $this->container->get($this->middleware_handler_ids[$index]); |
|
| 81 | ||
| 82 | if ($handler instanceof MiddlewareHandler) { |
|
| 83 | return $handler; |
|
| 84 | } |
|
| 85 | } |
|
| 86 | ||
| 87 | return null; |
|
| 88 | } |
|
| 89 | } |
|
| 90 | ||