Commit Graph

52792 Commits

Author SHA1 Message Date
Jeroen Noten
00c90aed51
[Serializer] Fix DenormalizableInterface::denormalize() return type declaration in docblock 2020-12-18 14:21:55 +01:00
Nicolas Grekas
44e98dba0d Merge branch '5.2' into 5.x
* 5.2:
  [Notifier] Prepare bridges for the upcoming return type change.
2020-12-18 13:47:19 +01:00
Nicolas Grekas
8716049c4d minor #39558 [Notifier] Prepare bridges for the upcoming return type change. (derrabus)
This PR was merged into the 5.2 branch.

Discussion
----------

[Notifier] Prepare bridges for the upcoming return type change.

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

Preparation for #39549.

Commits
-------

b0c2c4e46e [Notifier] Prepare bridges for the upcoming return type change.
2020-12-18 13:42:39 +01:00
Alexander M. Turek
b0c2c4e46e [Notifier] Prepare bridges for the upcoming return type change. 2020-12-18 13:41:51 +01:00
Alexander M. Turek
5398cba752 Merge branch '5.2' into 5.x
* 5.2:
  Fix NFS detection on macOs
2020-12-18 13:24:45 +01:00
Alexander M. Turek
7a7ded2a6b bug #39555 [FrameworkBundle] Fix NFS detection on macOs (jderusse)
This PR was merged into the 5.2 branch.

Discussion
----------

[FrameworkBundle] Fix NFS detection on macOs

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

Commits
-------

79718fb70f Fix NFS detection on macOs
2020-12-18 13:02:15 +01:00
Jérémy Derussé
79718fb70f
Fix NFS detection on macOs 2020-12-18 12:40:59 +01:00
Nicolas Grekas
c9c6a78b35 minor #39554 [Notifier] Fix test (OskarStark)
This PR was merged into the 5.3-dev branch.

Discussion
----------

[Notifier] Fix test

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

Commits
-------

c33abafc80 [Notifier] Fix test
2020-12-18 12:12:46 +01:00
Oskar Stark
c33abafc80 [Notifier] Fix test 2020-12-18 12:11:21 +01:00
Nicolas Grekas
92f814967d Merge branch '5.2' into 5.x
* 5.2:
  Fix merge
2020-12-18 11:41:32 +01:00
Nicolas Grekas
5c03d2d085 Fix merge 2020-12-18 11:41:23 +01:00
Nicolas Grekas
7c62e9b428 Merge branch '5.2' into 5.x
* 5.2:
  [Notifier] [Mattermost] Host is required
2020-12-18 11:35:38 +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
9a8d5078ab Merge branch '5.2' into 5.x
* 5.2:
  [Notifier] [Infobip][Zulip] Host is required
2020-12-18 11:28:39 +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
7013f23b08 Merge branch '5.2' into 5.x
* 5.2:
  [Notifier] Fix tests
  [HttpFoundation] keep turning dots to underscores when using Request::create()
2020-12-18 11:11:43 +01:00
Nicolas Grekas
0625c2ada4 bug #39550 [HttpFoundation] keep turning dots to underscores when using Request::create() (nicolas-grekas)
This PR was merged into the 5.2 branch.

Discussion
----------

[HttpFoundation] keep turning dots to underscores when using Request::create()

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

Commits
-------

cda81ccccd [HttpFoundation] keep turning dots to underscores when using Request::create()
2020-12-18 11:11:15 +01:00
Nicolas Grekas
fc160a14da [Notifier] Fix tests 2020-12-18 11:08:59 +01:00
Nicolas Grekas
cda81ccccd [HttpFoundation] keep turning dots to underscores when using Request::create() 2020-12-18 11:00:10 +01:00
Fabien Potencier
e2fa4bf1f3 Merge branch '5.2' into 5.x
* 5.2:
  Remove :void in test function signatures
2020-12-18 09:03:24 +01:00
Fabien Potencier
9e87661911 Merge branch '5.1' into 5.2
* 5.1:
  Remove :void in test function signatures
2020-12-18 09:03:05 +01:00
Fabien Potencier
090b4256f0 Merge branch '4.4' into 5.1
* 4.4:
  Remove :void in test function signatures
2020-12-18 09:02:46 +01:00
Fabien Potencier
54acc19659 minor #39544 Remove :void in test function signatures (fabpot)
This PR was merged into the 4.4 branch.

Discussion
----------

Remove :void in test function signatures

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | n/a<!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT
| Doc PR        | n/a

I've added a new rule in fabbot to detect usage of `: void` in test method signatures to please @nicolas-grekas :)

Commits
-------

47fcf4ad5a Remove :void in test function signatures
2020-12-18 09:01:25 +01:00
Fabien Potencier
437a88d00f Merge branch '5.2' into 5.x
* 5.2:
  Fix CS
  Fi CS
  [Notifier] Rework/streamline bridges (5.2)
2020-12-18 09:01:01 +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
47fcf4ad5a Remove :void in test function signatures 2020-12-18 08:41:31 +01:00
Fabien Potencier
bcd79d1adb Merge branch '5.2' into 5.x
* 5.2:
  Remove void return type from test methods
  Added basque translations
  Updated Luxembourgish translations
  [Mailer] Fix parsing Dsn with empty user/password
  Normalize exceptions messages containing methods references
  [Ldap] Incorrect determination of RelativeDistinguishedName for the "move" operation
2020-12-18 08:32:43 +01:00
Fabien Potencier
7d5ddc756c Merge branch '5.1' into 5.2
* 5.1:
  Remove void return type from test methods
  Added basque translations
  Updated Luxembourgish translations
  [Mailer] Fix parsing Dsn with empty user/password
  Normalize exceptions messages containing methods references
  [Ldap] Incorrect determination of RelativeDistinguishedName for the "move" operation
2020-12-18 08:32:35 +01:00
Fabien Potencier
0dc2d55537 Merge branch '4.4' into 5.1
* 4.4:
  Remove void return type from test methods
  Added basque translations
  Updated Luxembourgish translations
  [Mailer] Fix parsing Dsn with empty user/password
  Normalize exceptions messages containing methods references
  [Ldap] Incorrect determination of RelativeDistinguishedName for the "move" operation
2020-12-18 08:32:24 +01:00
Fabien Potencier
8dfd31d975 Merge branch '5.2' into 5.x
* 5.2:
  [Notifier] Fix parsing Dsn with empty user/password
  Remove void return type from test methods
  [Notifier] [Discord] Use private const and mb_strlen()
  [Notifier] Set message id on SentMessage
  [Notifier] Fix toString when optional parameter is not set
  [Notifier] Use assertSame()
2020-12-18 08:28:30 +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
Fabien Potencier
24334cb837 bug #39538 [Notifier] Fix parsing Dsn with empty user/password (OskarStark)
This PR was squashed before being merged into the 5.1 branch.

Discussion
----------

[Notifier] Fix parsing Dsn with empty user/password

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

Same like https://github.com/symfony/symfony/pull/39531, but for Notifier component.

I backported the DsnTest from `5.2` to `5.1`

Commits
-------

a80409af25 [Notifier] Fix parsing Dsn with empty user/password
2020-12-18 08:25:35 +01:00
Oskar Stark
a80409af25 [Notifier] Fix parsing Dsn with empty user/password 2020-12-18 08:25:29 +01:00
Fabien Potencier
32ad72fbf8 minor #39542 Remove void return type from test methods (OskarStark)
This PR was merged into the 5.1 branch.

Discussion
----------

Remove void return type from test methods

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

cc @nicolas-grekas

Same like #39541 but for `5.1`

Commits
-------

78da70615b Remove void return type from test methods
2020-12-18 08:17:09 +01:00
Fabien Potencier
a71912dbe5 minor #39541 Remove void return type from test methods (OskarStark)
This PR was merged into the 4.4 branch.

Discussion
----------

Remove void return type from test methods

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

cc @nicolas-grekas

Commits
-------

f126cf1304 Remove void return type from test methods
2020-12-18 08:15:38 +01:00
Oskar Stark
78da70615b Remove void return type from test methods 2020-12-18 07:28:27 +01:00
Oskar Stark
f126cf1304 Remove void return type from test methods 2020-12-18 07:23:32 +01:00
Wouter de Jong
98f4c054d1 minor #39537 [Notifier] Iqsms bridge fix README.md (alexandrbarabolia)
This PR was merged into the 5.3-dev branch.

Discussion
----------

[Notifier] Iqsms bridge fix README.md

| Q             | A
| ------------- | ---
| Branch?       | 5.x
| Bug fix?      | yes
| New feature?  | no
| License       | MIT

Sorry, bug I make a typo in file README.md. Please accept this pr and fix this problem.

Commits
-------

9513ea8caa fix README.md
2020-12-17 22:15:17 +01:00
Oleksandr Barabolia
9513ea8caa fix README.md 2020-12-17 20:28:25 +02:00
Fabien Potencier
5eeb95726d minor #39534 Normalize exceptions messages containing methods references (ogizanagi)
This PR was merged into the 4.4 branch.

Discussion
----------

Normalize exceptions messages containing methods references

| Q             | A
| ------------- | ---
| Branch?       | 4.4 <!-- see below -->
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | Fix https://github.com/symfony/symfony/pull/39399#discussion_r544972437 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT
| Doc PR        | N/A

Normalizes across the codebase any exception message mentioning methods to contain a trailing `()`

(Seems OK on 5.1 and 5.2 branch after this on is merged up)

Commits
-------

e2da2acd6d Normalize exceptions messages containing methods references
2020-12-17 17:57:38 +01:00
Fabien Potencier
e533bd34a8 feature #39096 [Notifier] add iqsms bridge (alexandrbarabolia)
This PR was squashed before being merged into the 5.3-dev branch.

Discussion
----------

[Notifier] add iqsms bridge

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| License       | MIT
| Doc PR        | https://github.com/symfony/symfony-docs/pull/14555
Hi,

I've created integration to notifier to support russian sms operator - [iqsms](https://iqsms.ru)

Can you grab this code and make as symfony/iqsms-notifier?

This PR includes changes in notifier and framework-bundle to support smsapi transport as well as other included in notifier component.

Could someone integrate this into notifier component?

Commits
-------

bf94bcb1f6 [Notifier] add iqsms bridge
2020-12-17 17:52:45 +01:00
Oleksandr Barabolia
bf94bcb1f6 [Notifier] add iqsms bridge 2020-12-17 17:52:39 +01:00
Fabien Potencier
def8181d8b minor #39359 Basque translations (jseparovic1, NicolasJourdan, ikerib)
This PR was submitted for the 5.x branch but it was merged into the 4.4 branch instead.

Discussion
----------

Basque translations

Fix #38726

Commits
-------

37a8e79650 Added basque translations
2020-12-17 17:47:57 +01:00
Iker Ibarguren Berasaluze
37a8e79650 Added basque translations 2020-12-17 17:47:44 +01:00