-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Notifier] Add LinkedIn provider #37830
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 LinkedIn provider #37830
Conversation
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.
Small review ;)
src/Symfony/Component/Notifier/Bridge/LinkedIn/LinkedInTransport.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/LinkedIn/LinkedInTransport.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/LinkedIn/LinkedInTransport.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/LinkedIn/LinkedInTransportFactory.php
Show resolved
Hide resolved
af79138
to
e5dfb1d
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.
GG for this working
src/Symfony/Component/Notifier/Bridge/LinkedIn/Tests/LinkedInTransportTest.php
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/LinkedIn/Tests/LinkedInTransportTest.php
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/LinkedIn/Tests/LinkedInTransportTest.php
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/LinkedIn/Tests/LinkedInTransportTest.php
Show resolved
Hide resolved
failing test seems not related 🤔 |
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.
Minor style changes needed.
public static function fromNotification(Notification $notification): self | ||
{ | ||
$options = new self(); | ||
$options->specificContent((new ShareContentShare($notification->getSubject()))); |
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.
extra ()
can be removed (same 3 more times below)
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.
fixed
return (new LinkedInTransport($authToken, $accountId, $this->client, $this->dispatcher)) | ||
->setHost($host) | ||
->setPort($port) | ||
; |
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.
Can be on one line
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.
fixed
@@ -0,0 +1,20 @@ | |||
LinkedIn Notifier | |||
==================== |
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.
extra =
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.
fixed
bool $landingPage = false, | ||
string $landingPageTitle = null, | ||
string $landingPageUrl = null | ||
) { |
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.
should be on one line
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.
fixed
011d958
to
0064cae
Compare
@ismail1432 Can you submit a PR on symfony/recipes? |
Thank you @ismail1432. |
Add the LinkedIn provider for the Notifier
Few months ago I created a bridge to send message to LinkedIn, following the discussion here I create the PR.
If you're curious I wrote an article where I use the bridge
[Edit] test are green
missing improvement body construction and integration test with update changes + framework integrationNotification sent with this PR