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