-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Notifier] [BC BREAK] Change constructor signature for Mattermost and Esendex transport #39592
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
Conversation
@@ -68,18 +70,20 @@ protected function doSend(MessageInterface $message): SentMessage | |||
} | |||
|
|||
$response = $this->client->request('POST', 'https://'.$this->getEndpoint().'/v1.0/messagedispatcher', [ | |||
'auth_basic' => $this->token, | |||
'auth_basic' => sprintf('%s:%s', $this->email, $this->password), |
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.
Before, this was assembled in the factory
@@ -44,7 +46,7 @@ public function __construct(string $token, string $accountReference, string $fro | |||
|
|||
public function __toString(): string | |||
{ | |||
return sprintf('esendex://%s', $this->getEndpoint()); | |||
return sprintf('esendex://%s?accountreference=%s&from=%s', $this->getEndpoint(), $this->accountReference, $this->from); |
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 also updated the __toString()
method to display accountreference
and from
, like in the other bridges
7f261cc
to
10bd554
Compare
10bd554
to
03ea499
Compare
eac7509
to
4f4626c
Compare
Ready to merge from my side |
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.
Please rebase to fix conflicts
5.3.0 | ||
----- | ||
|
||
* [BC BREAK] Changed signature of `MattermostTransport::__construct()` method from: |
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.
same
6a24bc9
to
9a4d2bd
Compare
… Esendex transport
Thank you @OskarStark. |
Based on #39428 (comment)
cc @odolbeau as you provided the bridge