| Conditions | 3 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function renderAction($file, $page = null) |
||
| 36 | { |
||
| 37 | if (null !== $page) { |
||
| 38 | $file = sprintf('%s/%s', dirname($file), $page); |
||
| 39 | } |
||
| 40 | |||
| 41 | $html = MarkdownExtra::defaultTransform(file_get_contents($file)); |
||
| 42 | |||
| 43 | foreach ($this->processors as $processor) { |
||
| 44 | $html = $processor->process($html); |
||
| 45 | } |
||
| 46 | |||
| 47 | return new Response($html); |
||
| 48 | } |
||
| 49 | } |
||
| 50 |