1 | <?php |
||
2 | |||
3 | namespace Azine\EmailBundle\Services; |
||
4 | |||
5 | /** |
||
6 | * @author dominik |
||
7 | */ |
||
8 | interface TemplateTwigSwiftMailerInterface |
||
9 | { |
||
10 | /** |
||
11 | * This send the txt- and html-email rendered from the $template using the parameters in $params. |
||
12 | * |
||
13 | * @param array $failedRecipients modified by reference, so after the function returns, the array contains the failed email-addresses |
||
14 | * @param string $subject |
||
15 | * @param string $from Email |
||
16 | * @param string $fromName |
||
17 | * @param string|array $to Email |
||
18 | * @param string $toName if $to is an array, $toName will be ignored |
||
19 | * @param string|array $cc Email |
||
20 | * @param string $ccName if $cc is an array, $ccName will be ignored |
||
21 | * @param string|array $bcc Email |
||
22 | * @param string $bccName if $bcc is an array, $bccName will be ignored |
||
23 | * @param string|array $replyTo Email |
||
24 | * @param string $replyToName |
||
25 | * @param array $params associative array of variables for the twig-template |
||
26 | * @param string $template twig-template to render, needs to have "body_text", "body_html" and "subject" blocks |
||
27 | * @param array $attachments associative array of attachmentNames and files (url or data) (if the attachmentName for an attachment is less than 5 chars long, the original file-name is used) |
||
28 | * @param string $emailLocale two-char locale for the rendering of the email |
||
29 | * @param \Swift_Message $message instance of \Swift_Message that can be accessed by reference after sending the email |
||
30 | * |
||
31 | * @throws FileException |
||
32 | * |
||
33 | * @return int of sent messages |
||
34 | */ |
||
35 | public function sendEmail(&$failedRecipients, $subject, $from, $fromName, $to, $toName, $cc, $ccName, $bcc, $bccName, $replyTo, $replyToName, array $params, $template, $attachments = array(), $emailLocale = null, \Swift_Message &$message = null); |
||
36 | |||
37 | /** |
||
38 | * Convenience function to send one email, no attachments, x recipient. |
||
39 | * |
||
40 | * @param string|array of strings $to => email-addresses |
||
0 ignored issues
–
show
|
|||
41 | * @param string $toName will be ignored it $to is an array |
||
42 | * @param string $subject |
||
43 | * @param array $params |
||
44 | * @param string $template |
||
45 | * @param string $emailLocale |
||
46 | * @param string $from defaults to azine's mailer |
||
47 | * @param string $fromName defaults to azine's mailer |
||
48 | * @param \Swift_Message $message instance of \Swift_Message that can be accessed by reference after sending the email |
||
49 | * @param string $to |
||
50 | * |
||
51 | * @return bool true if the mail was sent successfully, else false |
||
52 | */ |
||
53 | public function sendSingleEmail($to, $toName, $subject, array $params, $template, $emailLocale, $from = null, $fromName = null, \Swift_Message &$message = null); |
||
54 | } |
||
55 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths