Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | public function fileAction($id, $type) |
||
24 | { |
||
25 | $cronManager = new CronManager(); |
||
26 | $cron = $cronManager->getById($id); |
||
27 | $filepath = ($type == 'log') ? $cron->getLogFile() : $cron->getErrorFile(); |
||
28 | $content = file_get_contents($filepath); |
||
29 | |||
30 | return $this->render('FOACronBundle:Dashboard:log.html.twig', [ |
||
31 | 'filepath' => $filepath, |
||
32 | 'content' => $content, |
||
33 | ]); |
||
34 | } |
||
35 | |||
52 |