| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | public function getBody(): StreamInterface |
||
| 23 | { |
||
| 24 | $loader = new FilesystemLoader([App::$App->ApplicationPath.'/views']); |
||
| 25 | $env = new Environment($loader, ['strict_variables' => true]); |
||
| 26 | $env->addExtension(new StringLoaderExtension()); |
||
| 27 | $output = $env->render($this->template, $this->data); |
||
| 28 | return \GuzzleHttp\Psr7\stream_for($output); |
||
| 29 | } |
||
| 31 |