protected function addAttachments(Email $notification, \Swift_Message $email)
    {
        foreach ($notification->getAttachments() as $attachment) {
            $email->attach(
                new \Swift_Attachment(
                    $attachment->getContent(),
                    $attachment->getName(),
                    $attachment->getContentType()
                )
            );
        }
    }
protected function addAttachments(Email $notification, \Swift_Message $email)
    {
        foreach ($notification->getAttachments() as $attachment) {
            $email->attach(
                new \Swift_Attachment(
                    $attachment->getContent(),
                    $attachment->getName(),
                    $attachment->getContentType()
                )
            );
        }
    }
protected function addAttachments ( Email $ notification , \ Swift_Message $ email ) { foreach ( $ notification -> getAttachments ( ) as $ attachment ) { $ email -> attach ( new \ Swift_Attachment ( $ attachment -> getContent ( ) , $ attachment -> getName ( ) , $ attachment -> getContentType ( ) ) ) ; } }
Adds the attachments to the message.

@param Email          $notification
@param \Swift_Message $email
Adds the attachments to the message .