| @@ 199-211 (lines=13) @@ | ||
| 196 | * |
|
| 197 | * @return LoaderInterface |
|
| 198 | */ |
|
| 199 | private function wrapLoader(): LoaderInterface |
|
| 200 | { |
|
| 201 | $processors = []; |
|
| 202 | foreach ($this->modifiers as $modifier) { |
|
| 203 | if (is_object($modifier)) { |
|
| 204 | $processors[] = $modifier; |
|
| 205 | } else { |
|
| 206 | $processors[] = $this->container->make($modifier); |
|
| 207 | } |
|
| 208 | } |
|
| 209 | ||
| 210 | return new ProcessableLoader($this->environment, $this->loader, $processors); |
|
| 211 | } |
|
| 212 | } |
|
| @@ 207-219 (lines=13) @@ | ||
| 204 | * |
|
| 205 | * @return LoaderInterface |
|
| 206 | */ |
|
| 207 | private function wrapLoader(): LoaderInterface |
|
| 208 | { |
|
| 209 | $processors = []; |
|
| 210 | foreach ($this->modifiers as $modifier) { |
|
| 211 | if (is_object($modifier)) { |
|
| 212 | $processors[] = $modifier; |
|
| 213 | } else { |
|
| 214 | $processors[] = $this->container->make($modifier); |
|
| 215 | } |
|
| 216 | } |
|
| 217 | ||
| 218 | return new ContextLoader($this->environment, $this->loader, $processors); |
|
| 219 | } |
|
| 220 | ||
| 221 | /** |
|
| 222 | * @return bool|TwigCache |
|