/**
* @return void
*/
public function downloadLogFileAction() { $logDir =
$this->
get('kernel'
)->
getLogDir();
$files =
$this->
getLogFiles($logDir);
$logFile =
$this->
Request()->
getParam('logFile'
);
$logFile =
$this->
getLogFile($files,
$logFile);
if (!
$logFile) { throw new RuntimeException('Log file not found.'
);
} $logFilePath =
$logDir . '/' .
$this->
getLogFile($files,
$logFile);
$response =
$this->
Response();
$response->headers->
set('cache-control', 'public', true
);
$response->headers->
set('content-type', 'application/octet-stream'
);
$response->headers->
set('content-description', 'File Transfer'
);