public function sendReport(BenchmarkReportInterface $report) { $sms = $this->benchmarkReportersFactory->createReporterSmsMessage($report, $this->phoneNumber); try { $this->smsApi->send($sms); } catch (\Exception $e) { throw $e; //todo add logger like monotolog or do other stuff } }