Commit Graph

301 Commits

Author SHA1 Message Date
Christian Flothmann
53ae8c299d fix typo 2021-02-05 09:21:08 +01:00
Christian Flothmann
542dddca9a fix test 2021-01-22 17:15:52 +01:00
Oskar Stark
b5af0083de Merge branch '5.1' into 5.2
* 5.1:
  [Notifier] [OvhCloud] “Invalid signature” for message with slashes
2021-01-21 20:03:15 +01:00
Théo DELCEY
9f01fb84b7 [Notifier] [OvhCloud] “Invalid signature” for message with slashes 2021-01-21 20:02:19 +01:00
Oskar Stark
8ab7027e4b [Notifier] [GoogleChat] Fix wrong test 2021-01-15 09:35:51 +01:00
Nicolas Grekas
106c693c48 Merge branch '5.1' into 5.2
* 5.1:
  µCS fix
  CS fix
  CS fix
  [travis] use PHP 8.0 to patch return types and run deps=low
  Add me as a Notifier code owner
  Update sl_SI translations
  Don't trigger deprecation for deprecated aliases pointing to deprecated definitions
  [HttpFoundation] use atomic writes in MockFileSessionStorage
  Make EmailMessage & SmsMessage transport nullable
  remove unused argument
  [DI] fix param annotation
  [Config] Add \Symfony\Component\Config\Loader::load() return type
  Simplify PHP CS Fixer config
  Rename normalize param
2021-01-14 16:42:36 +01:00
Olivier Dolbeau
d98aca06d0 Make EmailMessage & SmsMessage transport nullable 2021-01-13 11:32:36 +01:00
Fabien Potencier
ef6d6a5f00 Merge branch '5.1' into 5.2
* 5.1:
  Improve composer.json descriptions
2021-01-10 17:38:27 +01:00
Fabien Potencier
b40597844a Improve composer.json descriptions 2021-01-10 17:38:16 +01:00
Nicolas Grekas
7e28ffa6a1 Merge branch '5.1' into 5.2
* 5.1:
  Rename parameter of @method configureContainer
  [DependencyInjection] Support PHP 8 builtin types in CheckTypeDeclarationsPass
  [DependencyInjection] Fix InvalidParameterTypeException for function parameters
  [Notifier] Cleanup changelog (5.1)
  [VarDumper] fix mutating $GLOBALS while cloning it
2021-01-07 15:52:12 +01:00
Nicolas Grekas
07c6c43ee2 minor #39736 [Notifier] Use abstract test cases in 5.2 (OskarStark)
This PR was squashed before being merged into the 5.2 branch.

Discussion
----------

[Notifier] Use abstract test cases in 5.2

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Follows #39495
| License       | MIT
| Doc PR        | ---

Same as #39495, but for `5.2`

cc @derrabus

Commits
-------

8f6b08c131 [Notifier] Use abstract test cases in 5.2
2021-01-07 15:39:16 +01:00
Oskar Stark
8f6b08c131 [Notifier] Use abstract test cases in 5.2 2021-01-07 15:39:10 +01:00
Nicolas Grekas
18002e26b9 minor #39740 [Notifier] Cleanup changelog (5.2) (OskarStark)
This PR was merged into the 5.2 branch.

Discussion
----------

[Notifier] Cleanup changelog (5.2)

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | ---
| License       | MIT
| Doc PR        | ---

New bridges are not mentioned in the changelog file of Notifier itself, but in the CHANGELOG of the bridge.

Same as #39739 but for `5.2`

Commits
-------

be5a541325 [Notifier] Cleanup changelog (5.2)
2021-01-07 15:36:27 +01:00
Alexander M. Turek
f6c10232c5 Merge branch '5.1' into 5.2
* 5.1:
  Fix bitnami env PATH
  [Notifier] Add tests for SlackOptions
2021-01-07 01:32:24 +01:00
Oskar Stark
be5a541325 [Notifier] Cleanup changelog (5.2) 2021-01-06 20:40:35 +01:00
Oskar Stark
6bfcaa7ede [Notifier] Cleanup changelog (5.1) 2021-01-06 20:38:33 +01:00
Fabien Potencier
7d904729b3 minor #39609 [Notifier] Add tests for SlackOptions (OskarStark)
This PR was squashed before being merged into the 5.1 branch.

Discussion
----------

[Notifier] Add tests for SlackOptions

| Q             | A
| ------------- | ---
| Branch?       | 5.1
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | ---
| License       | MIT
| Doc PR        | ---

Commits
-------

dcaee9970b [Notifier] Add tests for SlackOptions
2021-01-06 10:28:14 +01:00
Oskar Stark
dcaee9970b [Notifier] Add tests for SlackOptions 2021-01-06 10:28:07 +01:00
Christian Flothmann
0fdf59c26d fix code style 2021-01-05 20:37:17 +01:00
Fabien Potencier
a459b44829 Bump license year 2021-01-01 10:27:05 +01:00
Fabien Potencier
2a1a4e7067 Merge branch '5.1' into 5.2
* 5.1:
  Bump license year
  Bump license year
  [Form] fix passing null $pattern to IntlDateFormatter
  Add reference link
  Update README.md
2021-01-01 10:26:45 +01:00
Fabien Potencier
46ea62297b Bump license year 2021-01-01 10:26:30 +01:00
Nicolas Grekas
b604fd7dd8 minor #39648 [Notifier] Add missing LICENSE file (OskarStark)
This PR was merged into the 5.2 branch.

Discussion
----------

[Notifier] Add missing LICENSE file

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | ---
| License       | MIT
| Doc PR        | ---

Commits
-------

fbd1fe0fd6 [Notifier] Add missing LICENSE file
2020-12-29 09:43:11 +01:00
Oskar Stark
fbd1fe0fd6 [Notifier] Add missing LICENSE file 2020-12-29 09:21:34 +01:00
Alexander M. Turek
2a3708ef74 Fix tests 2020-12-22 15:53:22 +01:00
Alexander M. Turek
3c753e6eff Merge branch '5.1' into 5.2
* 5.1:
  [Notifier] [DX] Abstract test cases
  [Intl] Update the ICU data to 68.2
2020-12-22 15:40:43 +01:00
Oskar Stark
79379b71f4 [Notifier] [DX] Abstract test cases 2020-12-22 15:13:46 +01:00
Oskar Stark
d9eb1a1f6e [Notifier] [Discord] Use sprintf for exception message 2020-12-22 08:30:35 +01:00
Alexander M. Turek
d499cac462 minor #39576 [Notifier] add "symfony/polyfill-mbstring" as dep of the Discord bridge (nicolas-grekas)
This PR was merged into the 5.2 branch.

Discussion
----------

[Notifier] add "symfony/polyfill-mbstring" as dep of the Discord bridge

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

Commits
-------

e61f0c50fa [Notifier] add "symfony/polyfill-mbstring" as dep of the Discord bridge
2020-12-21 16:41:57 +01:00
Olivier Dolbeau
f8a95b3965 Supports empty path for slack DSN 2020-12-21 09:54:05 +01:00
Nicolas Grekas
e61f0c50fa [Notifier] add "symfony/polyfill-mbstring" as dep of the Discord bridge 2020-12-19 15:24:47 +01:00
Alexander M. Turek
b9eca9fcc9 [Notifier] GoogleChat/FreeMobile: Declare incompatibility with 5.3. 2020-12-18 14:47:30 +01:00
Alexander M. Turek
b0c2c4e46e [Notifier] Prepare bridges for the upcoming return type change. 2020-12-18 13:41:51 +01:00
Nicolas Grekas
5c03d2d085 Fix merge 2020-12-18 11:41:23 +01:00
Nicolas Grekas
26ce5b4c20 Merge branch '5.1' into 5.2
* 5.1:
  [Notifier] [Mattermost] Host is required
2020-12-18 11:35:32 +01:00
Nicolas Grekas
8797138e8d bug #39545 [Notifier] [Mattermost] Host is required (OskarStark)
This PR was squashed before being merged into the 5.1 branch.

Discussion
----------

[Notifier] [Mattermost] Host is required

| Q             | A
| ------------- | ---
| Branch?       | 5.1
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | ---
| License       | MIT
| Doc PR        | ---

This bridge is the only one right now which cannot use `default` as host in the DSN, otherwise it would fall back to:
090b4256f0/src/Symfony/Component/Notifier/Transport/AbstractTransport.php (L30)

it could also not use:
090b4256f0/src/Symfony/Component/Notifier/Transport/AbstractTransport.php (L83-L86)

Based on the [documentation](https://api.mattermost.com/#tag/authentication) you must use your specific url like:
`your-mattermost-url.com/api/v4/...`

Using `localhost` would have weird side-effects.

Can you confirm this @thePanz , as you provided the bridge?

friendly ping @seb37800, you fixed some bugs in this transport

### Todos after merge
* [ ] adjust recipes with new DSN
* [ ] update the docs

Commits
-------

cd5b48003f [Notifier] [Mattermost] Host is required
2020-12-18 11:34:54 +01:00
Oskar Stark
cd5b48003f [Notifier] [Mattermost] Host is required 2020-12-18 11:34:45 +01:00
Nicolas Grekas
7b4af4ba13 bug #39548 [Notifier] [Infobip][Zulip] Host is required (OskarStark)
This PR was squashed before being merged into the 5.2 branch.

Discussion
----------

[Notifier] [Infobip][Zulip] Host is required

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | ---
| License       | MIT
| Doc PR        | ---

### Todos after merge
* [ ] adjust recipes with new DSN
* [ ] update the docs

Commits
-------

cfd932e036 [Notifier] [Infobip][Zulip] Host is required
2020-12-18 11:21:23 +01:00
Oskar Stark
cfd932e036 [Notifier] [Infobip][Zulip] Host is required 2020-12-18 11:21:14 +01:00
Nicolas Grekas
fc160a14da [Notifier] Fix tests 2020-12-18 11:08:59 +01:00
Fabien Potencier
c60f0b8e02 Fix CS 2020-12-18 08:54:33 +01:00
Fabien Potencier
185f04dfd4 Fi CS 2020-12-18 08:52:49 +01:00
Fabien Potencier
a566eeeee0 minor #39428 [Notifier] Rework/streamline bridges (5.2) (OskarStark)
This PR was squashed before being merged into the 5.2 branch.

Discussion
----------

[Notifier] Rework/streamline bridges (5.2)

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | ---
| License       | MIT
| Doc PR        | ---

This PR

* add missing tests
* pull up scheme check (check scheme first and then for required options)
* streamlines README.md files

While working on adding tests for `symfony/esendex-notifier` I noticed that the `EsendexTransport` has the following signature:
613ac0c0e9/src/Symfony/Component/Notifier/Bridge/Esendex/EsendexTransport.php (L36)

and is resolved by the `EsendexTransportFactory` like:
613ac0c0e9/src/Symfony/Component/Notifier/Bridge/Esendex/EsendexTransportFactory.php (L30)

but the `README` exposes the DSN like:
```
esendex://EMAIL:PASSWORD@default?accountreference=ACCOUNT_REFERENCE&from=FROM
```
as this Bridge is experimental in `5.2`I propose to change the transport signature like, because to me it is more email/password like described in the readme than a "token":
```diff
- public function __construct(string $token, string $accountReference, string $from, HttpClientInterface $client = null,
EventDispatcherInterface $dispatcher = null)
+ public function __construct(string $email, string $password, string $accountReference, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
```

What do you think?

cc @odolbeau as you provided the Esendex bridge.

Commits
-------

a5d78787e6 [Notifier] Rework/streamline bridges (5.2)
2020-12-18 08:52:08 +01:00
Oskar Stark
a5d78787e6 [Notifier] Rework/streamline bridges (5.2) 2020-12-18 08:52:03 +01:00
Fabien Potencier
d0da49d201 Merge branch '5.1' into 5.2
* 5.1:
  [Notifier] Fix parsing Dsn with empty user/password
  Remove void return type from test methods
  [Notifier] Use assertSame()
2020-12-18 08:27:35 +01:00
Oskar Stark
a80409af25 [Notifier] Fix parsing Dsn with empty user/password 2020-12-18 08:25:29 +01:00
Fabien Potencier
6ead4a273e bug #39492 [Notifier] [Discord] Use private const and mb_strlen() (OskarStark)
This PR was squashed before being merged into the 5.2 branch.

Discussion
----------

[Notifier] [Discord] Use private const and mb_strlen()

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | ---
| License       | MIT
| Doc PR        | ---

like proposed by @nicolas-grekas in https://github.com/symfony/symfony/pull/39444/files#r542288432

Commits
-------

165c87247d [Notifier] [Discord] Use private const and mb_strlen()
2020-12-17 17:31:33 +01:00
Oskar Stark
165c87247d [Notifier] [Discord] Use private const and mb_strlen() 2020-12-17 17:31:25 +01:00
Fabien Potencier
756bab4241 bug #39522 [Notifier] Set message id on SentMessage (OskarStark)
This PR was squashed before being merged into the 5.2 branch.

Discussion
----------

[Notifier] Set message id on SentMessage

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | ---
| License       | MIT
| Doc PR        | ---

@ismail1432 what do you think?

Commits
-------

9dd09e632d [Notifier] Set message id on SentMessage
2020-12-17 17:30:10 +01:00
Oskar Stark
9dd09e632d [Notifier] Set message id on SentMessage 2020-12-17 17:30:01 +01:00