-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add mailing command #120
Add mailing command #120
Conversation
@@ -239,7 +238,7 @@ private function buildCoalesce(array $fields, Context $context): string | |||
} | |||
} | |||
|
|||
return substr($coalesce, 0, -1) . ')'; | |||
return mb_substr($coalesce, 0, -1) . ')'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PHPCSFIXER: .php-cs-fixer.dist.php
// Replace non multibyte-safe functions with corresponding mb function.
'mb_str_functions' => true,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should disable that 😂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I saw you used it in other classes as well, keep it similar I would say. Only diff is apperently that it will handle UTF-8 encoding better. You can disable it in the php-cs-fixer file tho, i am emotionless in that topic 😆
@shyim what is missing here? Should I revert the mb_substr and what is your / the rest's decision on the plugin config? |
As talked about with @shyim in Slack here is a simple integration with email instead of webhooks.
The integration with the notifier component from symfony is nice as well, but uses the message queue to send messages. There is always the possibility of adding an own webhook interface, but probably just overkill atm (as well as adding an own mailtemplate/migration etc. to the mail integration).
Feel free to mention the other dev that you referred to.
Usage
3 configs are added
First argument must be a Saleschannel ID
bin/console frosh:monitor 4606300361c34ae3b69d813bb292f823
Email can be overwritten in command:
bin/console frosh:monitor 4606300361c34ae3b69d813bb292f823 --email=michahobert@test.de
PS: Small fixes done by PHPCSFIXER