Skip to content

[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

Merged
merged 1 commit into from
Dec 29, 2020

Conversation

OskarStark
Copy link
Contributor

@OskarStark OskarStark commented Dec 21, 2020

Q A
Branch? 5.x, but BC BREAK for experimental bridge
Bug fix? no
New feature? no
Deprecations? no
Tickets ---
License MIT
Doc PR ---

Based on #39428 (comment)

cc @odolbeau as you provided the bridge

@@ -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),
Copy link
Contributor Author

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);
Copy link
Contributor Author

@OskarStark OskarStark Dec 21, 2020

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

@OskarStark OskarStark force-pushed the esendex-5.x branch 2 times, most recently from 7f261cc to 10bd554 Compare December 22, 2020 07:30
@OskarStark OskarStark changed the title [Notifier] [Esendex] [BC BREAK] Change constructor signature [Notifier [BC BREAK] Change constructor signature for Mattermost and Esendex transport Dec 22, 2020
@OskarStark OskarStark changed the title [Notifier [BC BREAK] Change constructor signature for Mattermost and Esendex transport [Notifier] [BC BREAK] Change constructor signature for Mattermost and Esendex transport Dec 22, 2020
@OskarStark
Copy link
Contributor Author

Ready to merge from my side

@nicolas-grekas nicolas-grekas added this to the 5.x milestone Dec 23, 2020
Copy link
Member

@jderusse jderusse left a 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:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

@OskarStark OskarStark force-pushed the esendex-5.x branch 2 times, most recently from 6a24bc9 to 9a4d2bd Compare December 28, 2020 07:08
@fabpot
Copy link
Member

fabpot commented Dec 29, 2020

Thank you @OskarStark.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants