public function testExceptionReportV1()
 {
     $exception_report = file_get_contents('fixtures/exception_report_v1.txt');
     $symbolicator = new Symbolicator($exception_report, 'tower1', '1.0.8');
     $result = $symbolicator->symbolicate();
     var_dump($result);
 }
 public function symbolicate()
 {
     $this->symbolicated_report = null;
     $this->symbolicator_error_message = null;
     if (is_post_request()) {
         $symbolicator = new Symbolicator($this->params['report'], 'tower1');
         try {
             $this->symbolicated_report = $symbolicator->symbolicate();
         } catch (Exception $e) {
             $this->symbolicator_error_message = markdown_to_html($e->getMessage());
         }
     }
 }
function symbolicate($app_name, $app_version, $trace, $arch = 'i386')
{
    $symbolicater = new Symbolicator($report);
    $symbolicater->symbolicate();
    $trace = str_replace("\n", ' ', $trace);
    $full_path = sprintf("%s/tower1/%s/Tower.app/Contents/MacOS/Tower", RELEASES_DIR, $app_version);
    $cmd = sprintf("/usr/bin/atos -arch %s -o %s %s", $arch, $full_path, $trace);
    $output = system($cmd);
    return $output;
}