-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[Notifier] Add options to Microsoft Teams notifier #40738
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
[Notifier] Add options to Microsoft Teams notifier #40738
Conversation
src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/AbstractMicrosoftTeamsAction.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/MicrosoftTeamsHttpPostAction.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/MicrosoftTeamsTransport.php
Show resolved
Hide resolved
...ny/Component/Notifier/Bridge/MicrosoftTeams/Section/AbstractMicrosoftTeamsSectionElement.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Section/AbstractMicrosoftTeamsSection.php
Outdated
Show resolved
Hide resolved
...y/Component/Notifier/Bridge/MicrosoftTeams/Section/MicrosoftTeamsSectionElementInterface.php
Outdated
Show resolved
Hide resolved
14eea2a to
920961e
Compare
src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/ActionCardAction.php
Outdated
Show resolved
Hide resolved
4a18dd8 to
a3e9511
Compare
dd69d4d to
38c7a69
Compare
38c7a69 to
d22a391
Compare
Nyholm
left a comment
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.
Thank you. This looks way better now.
I've not tested the code, but I trust that you have.
src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/MicrosoftTeamsOptions.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/MicrosoftTeamsTransport.php
Outdated
Show resolved
Hide resolved
d89f4b5 to
767698e
Compare
src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/ActionCardAction.php
Outdated
Show resolved
Hide resolved
...fony/Component/Notifier/Bridge/MicrosoftTeams/Action/ActionCardCompatibleActionInterface.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/ActionElementInterface.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Section/FieldInterface.php
Outdated
Show resolved
Hide resolved
95129e9 to
d997961
Compare
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.
It seems that some interfaces are not actually needed.
Interfaces make maintenance harder so it must be worth it. I strongly think those should be removed, we can reconsider later if a use case comes out.
src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/Element/ActionElementInterface.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Section/Field/FieldInterface.php
Outdated
Show resolved
Hide resolved
d997961 to
3fc7247
Compare
57c793d to
0039b9c
Compare
4d275c8 to
d86f7b4
Compare
jderusse
left a comment
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.
I'm not a big fan of the protected options and everybody writing into it.
I wonder if the property shouldn't be private, and each class is responsible for its own properties. Then change the toArray method for something like
public function toArray(): array
{
return parent::toArray() + $this->options + ['@action' => 'FooBar'];
}
src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/ActionCard.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/Element/Header.php
Outdated
Show resolved
Hide resolved
@jderusse makes sense, did that 👍 |
96d3019 to
e33faae
Compare
e33faae to
d039ce7
Compare
|
Thank you @OskarStark. |
…milKubicki) This PR was squashed before being merged into the 5.4 branch. Discussion ---------- [Notifier] Documentation for Microsoft Teams Options Docs for symfony/symfony#40738 Replaces #15232 Commits ------- 3c98ba8 [Notifier] Documentation for Microsoft Teams Options
After rework: