public function testFilePath()
 {
     $cronTaskLog = new CronTaskLog();
     $cronTaskLog->setFilePath('test');
     $this->assertEquals('test', $cronTaskLog->getFilePath());
 }
 public function logViewAction(CronTaskLog $cronTaskLog)
 {
     $logDir = $this->getParameter('dsp_softs_cron_manager.logs_dir');
     $filePath = $logDir . $cronTaskLog->getFilePath();
     return new Response(file_get_contents($filePath), 200, array('Content-type' => 'text/plain'));
 }