Commit Graph

52532 Commits

Author SHA1 Message Date
Nicolas Grekas
80c5aeb6a2 bug #39603 [TwigBridge] allow null values in form helpers (xabbuh)
This PR was merged into the 5.2 branch.

Discussion
----------

[TwigBridge] allow null values in form helpers

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

Commits
-------

f908047c6b allow null values in form helpers
2020-12-23 15:54:41 +01:00
Alexander M. Turek
9e56c00f9c bug #39584 [Security] Add RememberMe Badge to LoginLinkAuthenticator (jderusse)
This PR was merged into the 5.2 branch.

Discussion
----------

[Security] Add RememberMe Badge to LoginLinkAuthenticator

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

I'm replacing a custom home-made magic link authenticator by the Symfony one, and I missed this behavior. I had to use a EventListener to add the badge to the passeport.

I'm not sure, if the badge were missing on purpose /cc @weaverryan @wouterj

Commits
-------

d38fc4d678 Add RememberMe Badge to LoginLinkAuthenticator
2020-12-22 20:03:33 +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
Alexander M. Turek
1ee1659601 minor #39495 [Notifier] [DX] Abstract test cases (OskarStark)
This PR was squashed before being merged into the 5.1 branch.

Discussion
----------

[Notifier] [DX] Abstract test cases

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

This PR

* [x] adds a new _abstract_ `TransportTestCase`
* [x] adds a new _abstract_ `TransportFactoryTestCase` (code is mainly taken from the `Mailer/TransportFactoryTestCase`)

We have a lot of code duplication in the notifier bridges

### Todos
* [x] check if we want this
* [x]  I would want to use Dsn strings (like already used in the notifier bridge tests) instead of objects for the providers, what do you think? For me it is more readably
* [x] update all bridges
* [x] Bump notifier to `~5.1.10`

### Questions
* [x] is it Ok to consider this a bugfix and merge into `5.1`?
* [x] shall I prefix the abstract test cases with `Abstract` ? As we did the same for Mailer, I would say no

@symfony/mergers have to change ^5.2 into ^5.2.1

Commits
-------

79379b71f4 [Notifier] [DX] Abstract test cases
2020-12-22 15:13:56 +01:00
Oskar Stark
79379b71f4 [Notifier] [DX] Abstract test cases 2020-12-22 15:13:46 +01:00
Robin Chalas
096f42dc95 minor #39589 [Notifier] [Discord] Use sprintf for exception message (OskarStark)
This PR was merged into the 5.2 branch.

Discussion
----------

[Notifier] [Discord] Use sprintf for exception message

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

Commits
-------

d9eb1a1f6e [Notifier] [Discord] Use sprintf for exception message
2020-12-22 14:26:12 +01:00
Alexander M. Turek
c900018758 Merge branch '4.4' into 5.1
* 4.4:
  [Intl] Update the ICU data to 68.2
2020-12-22 13:16:28 +01:00
Christian Flothmann
f908047c6b allow null values in form helpers 2020-12-22 09:11:35 +01:00
Oskar Stark
d9eb1a1f6e [Notifier] [Discord] Use sprintf for exception message 2020-12-22 08:30:35 +01:00
Alexander M. Turek
18927fe54a minor #39573 [Intl] Update the ICU data to 68.2 (jakzal)
This PR was merged into the 4.4 branch.

Discussion
----------

[Intl] Update the ICU data to 68.2

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

Commits
-------

4573965f74 [Intl] Update the ICU data to 68.2
2020-12-21 17:14:24 +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
Alexander M. Turek
7bc051f260 Merge branch '5.1' into 5.2
* 5.1:
  Bump Symfony version to 5.1.11
  Update VERSION for 5.1.10
  Update CHANGELOG for 5.1.10
  Bump Symfony version to 4.4.19
  Update VERSION for 4.4.18
  Update CONTRIBUTORS for 4.4.18
  Update CHANGELOG for 4.4.18
  [Serializer] Fix DenormalizableInterface::denormalize() return type declaration in docblock
2020-12-21 16:33:14 +01:00
Alexander M. Turek
74b132fca2 Merge branch '4.4' into 5.1
* 4.4:
  Bump Symfony version to 4.4.19
  Update VERSION for 4.4.18
  Update CONTRIBUTORS for 4.4.18
  Update CHANGELOG for 4.4.18
  [Serializer] Fix DenormalizableInterface::denormalize() return type declaration in docblock
2020-12-21 16:29:43 +01:00
Robin Chalas
4c9e663678 bug #39586 Supports empty path for slack DSN (odolbeau)
This PR was merged into the 5.2 branch.

Discussion
----------

Supports empty path for slack DSN

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

It's actually not possible to use a Slack DSN inspired by [the documentation](https://symfony.com/doc/current/notifier.html#chat-channel), ie: `slack://TOKEN@default?channel=CHANNEL` cause the path is null (must be `/`).

This PR allows to not specify a path.

Commits
-------

f8a95b3965 Supports empty path for slack DSN
2020-12-21 13:31:13 +01:00
Jérémy Derussé
d38fc4d678
Add RememberMe Badge to LoginLinkAuthenticator 2020-12-21 09:54:09 +01:00
Olivier Dolbeau
f8a95b3965 Supports empty path for slack DSN 2020-12-21 09:54:05 +01:00
Robin Chalas
c4ddafb655 minor #39565 [Notifier] GoogleChat/FreeMobile: Declare incompatibility with 5.3 (derrabus)
This PR was merged into the 5.2 branch.

Discussion
----------

[Notifier] GoogleChat/FreeMobile: Declare incompatibility with 5.3

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

I missed two bridges. 😓  @nicolas-grekas

Commits
-------

b9eca9fcc9 [Notifier] GoogleChat/FreeMobile: Declare incompatibility with 5.3.
2020-12-20 15:19:17 +01:00
Alexander M. Turek
8f7a8d345a minor #39561 [Serializer] Fix DenormalizableInterface::denormalize() return type declaration in docblock (jeroennoten)
This PR was merged into the 4.4 branch.

Discussion
----------

[Serializer] Fix DenormalizableInterface::denormalize() return type declaration in docblock

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

DenormalizableInterface::denormalize() should not return anything, so the `@return` declaration should be removed. If you look at the usage in `CustomNormalizer::denormalize()`, it becomes clear that this method shouldn't return anything:
```php
    public function denormalize($data, $type, $format = null, array $context = [])
    {
        $object = $this->extractObjectToPopulate($type, $context) ?: new $type();
        $object->denormalize($this->serializer, $data, $format, $context);

        return $object;
    }
```

Commits
-------

00c90aed51 [Serializer] Fix DenormalizableInterface::denormalize() return type declaration in docblock
2020-12-20 14:32:21 +01:00
Nicolas Grekas
e61f0c50fa [Notifier] add "symfony/polyfill-mbstring" as dep of the Discord bridge 2020-12-19 15:24:47 +01:00
Jakub Zalas
4573965f74
[Intl] Update the ICU data to 68.2 2020-12-19 12:57:32 +01:00
Robin Chalas
f44bdd3c8b minor #39572 [SecurityBundle] Fix transient test (chalasr)
This PR was merged into the 5.2 branch.

Discussion
----------

[SecurityBundle] Fix transient test

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

See e.g. https://travis-ci.com/github/symfony/symfony/jobs/462408658#L4961

Commits
-------

fd27c4dd97 [SecurityBundle] Fix transient test
2020-12-19 11:53:24 +01:00
Robin Chalas
fd27c4dd97 [SecurityBundle] Fix transient test 2020-12-19 11:10:19 +01:00
Fabien Potencier
ba849c0d21 Bump Symfony version to 5.2.2 2020-12-18 15:09:16 +01:00
Fabien Potencier
649fa3f8cd
Merge pull request #39564 from fabpot/release-5.2.1
released v5.2.1
2020-12-18 14:49:55 +01:00
Fabien Potencier
8c76f4b2fc Update VERSION for 5.2.1 2020-12-18 14:49:39 +01:00
Fabien Potencier
78132fe29b Update CHANGELOG for 5.2.1 2020-12-18 14:49:30 +01:00
Fabien Potencier
a969b99417 Bump Symfony version to 5.1.11 2020-12-18 14:48:52 +01:00
Alexander M. Turek
b9eca9fcc9 [Notifier] GoogleChat/FreeMobile: Declare incompatibility with 5.3. 2020-12-18 14:47:30 +01:00
Fabien Potencier
00157445ee
Merge pull request #39563 from fabpot/release-5.1.10
released v5.1.10
2020-12-18 14:43:47 +01:00
Fabien Potencier
3213a921e5 Update VERSION for 5.1.10 2020-12-18 14:43:29 +01:00
Fabien Potencier
290996e92d Update CHANGELOG for 5.1.10 2020-12-18 14:43:18 +01:00
Fabien Potencier
c1b9323f30 Bump Symfony version to 4.4.19 2020-12-18 14:39:05 +01:00
Fabien Potencier
a05cc024d3
Merge pull request #39562 from fabpot/release-4.4.18
released v4.4.18
2020-12-18 14:32:50 +01:00
Fabien Potencier
92334dd0c5 Update VERSION for 4.4.18 2020-12-18 14:32:33 +01:00
Fabien Potencier
0aabdf920f Update CONTRIBUTORS for 4.4.18 2020-12-18 14:32:28 +01:00
Fabien Potencier
f2d3ac0e7b Update CHANGELOG for 4.4.18 2020-12-18 14:31:35 +01:00
Jeroen Noten
00c90aed51
[Serializer] Fix DenormalizableInterface::denormalize() return type declaration in docblock 2020-12-18 14:21:55 +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
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
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
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