Skip to content

Commit

Permalink
Added meta for Notification Emails (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
King2500 committed Jun 3, 2020
1 parent 5b543f2 commit 95dbb1b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Symfony/Bridge/Twig/Mime/.phpstorm.meta.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

namespace PHPSTORM_META {

registerArgumentsSet('symfony_notification_email_importance',
\Symfony\Bridge\Twig\Mime\NotificationEmail::IMPORTANCE_URGENT,
\Symfony\Bridge\Twig\Mime\NotificationEmail::IMPORTANCE_HIGH,
\Symfony\Bridge\Twig\Mime\NotificationEmail::IMPORTANCE_MEDIUM,
\Symfony\Bridge\Twig\Mime\NotificationEmail::IMPORTANCE_LOW
);

expectedArguments(\Symfony\Bridge\Twig\Mime\NotificationEmail::importance(), 0, argumentsSet('symfony_notification_email_importance'));
}
13 changes: 13 additions & 0 deletions Symfony/Component/Mime/.phpstorm.meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
);
expectedArguments(\Symfony\Component\Mime\Email::priority(), 0, argumentsSet('symfony_mime_email_priorities'));
expectedReturnValues(\Symfony\Component\Mime\Email::getPriority(), argumentsSet('symfony_mime_email_priorities'));
expectedReturnValues(\Symfony\Bridge\Twig\Mime\NotificationEmail::determinePriority(), argumentsSet('symfony_mime_email_priorities'));
expectedReturnValues(\Symfony\Bridge\Twig\Mime\WrappedTemplatedEmail::getPriority(), argumentsSet('symfony_mime_email_priorities'));
expectedArguments(\Symfony\Bridge\Twig\Mime\WrappedTemplatedEmail::setPriority(), 0, argumentsSet('symfony_mime_email_priorities'));

registerArgumentsSet('symfony_mime_media_types',
'text',
Expand Down Expand Up @@ -175,6 +178,7 @@
'image/jpeg',
'image/png',
'image/gif',
'image/webp',
'audio/mpeg',
'audio/ogg',
'application/pdf',
Expand Down Expand Up @@ -205,4 +209,13 @@
expectedArguments(\Symfony\Component\Mime\Email::attachFromPath(), 2, argumentsSet('symfony_mime_mimetypes'));
expectedArguments(\Symfony\Component\Mime\Email::embed(), 2, argumentsSet('symfony_mime_mimetypes'));
expectedArguments(\Symfony\Component\Mime\Email::embedFromPath(), 2, argumentsSet('symfony_mime_mimetypes'));
expectedArguments(\Symfony\Bridge\Twig\Mime\WrappedTemplatedEmail::attach(), 2, argumentsSet('symfony_mime_mimetypes'));

registerArgumentsSet('symfony_mime_image_mimetypes',
'image/jpeg',
'image/png',
'image/gif',
'image/webp'
);
expectedArguments(\Symfony\Bridge\Twig\Mime\WrappedTemplatedEmail::image(), 1, argumentsSet('symfony_mime_image_mimetypes'));
}

0 comments on commit 95dbb1b

Please sign in to comment.