private function getRecipients(License $license) { $recipients = []; if ($this->input->getOption('env') == 'prod') { $recipients[] = ['email' => $license->getTechContactEmail(), 'name' => $license->getTechContactName()]; if ($license->getTechContactEmail() != $license->getBillingContactEmail()) { $recipients[] = ['email' => $license->getBillingContactEmail(), 'name' => $license->getBillingContactName()]; } } else { $recipients[] = ['email' => $this->getContainer()->getParameter('vendor_email')]; } return $recipients; }