Commit Graph

53181 Commits

Author SHA1 Message Date
Fabien Potencier
712e03352e Bump Symfony version to 5.2.3 2021-01-27 15:55:33 +01:00
Fabien Potencier
b8c9ce9c70
Merge pull request #40001 from fabpot/release-5.2.2
released v5.2.2
2021-01-27 15:46:07 +01:00
Fabien Potencier
fc85acb633 Update VERSION for 5.2.2 2021-01-27 15:45:46 +01:00
Fabien Potencier
be7cfb19de Update CHANGELOG for 5.2.2 2021-01-27 15:45:38 +01:00
Fabien Potencier
aeb15a1322 Bump Symfony version to 4.4.20 2021-01-27 14:59:11 +01:00
Fabien Potencier
c2c71dee2c
Merge pull request #39998 from fabpot/release-4.4.19
released v4.4.19
2021-01-27 14:51:38 +01:00
Fabien Potencier
7fb2dbf465 Update VERSION for 4.4.19 2021-01-27 14:50:53 +01:00
Fabien Potencier
f8c9307f48 Update CONTRIBUTORS for 4.4.19 2021-01-27 14:50:29 +01:00
Fabien Potencier
d02f3635c6 Update CHANGELOG for 4.4.19 2021-01-27 14:50:17 +01:00
Nicolas Grekas
0e786723de Merge branch '5.1' into 5.2
* 5.1:
  Use import instead of FQCN
2021-01-27 13:56:27 +01:00
Nicolas Grekas
ea2ced0607 minor #39996 Use import instead of FQCN (OskarStark)
This PR was merged into the 5.1 branch.

Discussion
----------

Use import instead of FQCN

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

Commits
-------

b2fee7a8a2 Use import instead of FQCN
2021-01-27 13:55:46 +01:00
Oskar Stark
b2fee7a8a2 Use import instead of FQCN 2021-01-27 13:50:07 +01:00
Nicolas Grekas
175b725dfe Fix merge 2021-01-27 12:32:03 +01:00
Nicolas Grekas
0045fc480d More cleanups and fixes 2021-01-27 12:24:50 +01:00
Nicolas Grekas
8a7bf238d6 Merge branch '5.1' into 5.2
* 5.1:
  More cleanups and fixes
2021-01-27 12:19:04 +01:00
Nicolas Grekas
75fd4ce584 More cleanups and fixes 2021-01-27 12:17:55 +01:00
Nicolas Grekas
df5c849f9c Merge branch '5.1' into 5.2
* 5.1:
  Fix merge
2021-01-27 11:42:51 +01:00
Nicolas Grekas
48afd70717 Fix merge 2021-01-27 11:42:04 +01:00
Nicolas Grekas
07abdf27d8 Merge branch '5.1' into 5.2
* 5.1:
  Fix merge
2021-01-27 11:36:42 +01:00
Nicolas Grekas
bdae9cbf14 Fix merge 2021-01-27 11:36:24 +01:00
Nicolas Grekas
02d2834ec0 Merge branch '5.1' into 5.2
* 5.1:
  add missing use statement
2021-01-27 11:30:59 +01:00
Nicolas Grekas
fcf07ae008 minor #39994 [FrameworkBundle] add missing use statement (xabbuh)
This PR was merged into the 5.1 branch.

Discussion
----------

[FrameworkBundle] add missing use statement

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

Commits
-------

cfab105930 add missing use statement
2021-01-27 11:30:37 +01:00
Christian Flothmann
cfab105930 add missing use statement 2021-01-27 11:28:18 +01:00
Nicolas Grekas
854de3cc2e Merge branch '5.1' into 5.2
* 5.1:
  Use createMock() and use import instead of FQCN
2021-01-27 11:15:41 +01:00
Nicolas Grekas
28f1ab67ca Merge branch '4.4' into 5.1
* 4.4:
  Use createMock() and use import instead of FQCN
2021-01-27 11:01:46 +01:00
Nicolas Grekas
22b1eb40a3 minor #39941 Use createMock() and use import instead of FQCN (OskarStark)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

Use createMock() and use import instead of FQCN

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

Commits
-------

e7e61ee551 Use createMock() and use import instead of FQCN
2021-01-27 10:09:34 +01:00
Oskar Stark
e7e61ee551 Use createMock() and use import instead of FQCN 2021-01-27 10:09:26 +01:00
Nicolas Grekas
98b58b4c4c Merge branch '5.1' into 5.2
* 5.1:
  Fix transient tests
  Fix class resolution in Doctrine EventListenerPass
  [Serializer] Fix tests  marked as incomplete
  propagate the object being validated to sub-constraints
  [Translator] fix handling plural for floating numbers
  fix redis messenger options with dsn
  Update ConsoleEvents.php
  allow Doctrine persistence 2 too
  [Messenger] Fix transporting non-UTF8 payloads by encoding them using base 64
  add doctrine/persistence as a dev requirement
  Exclude non-initialized properties accessed with getters
2021-01-27 10:04:53 +01:00
Nicolas Grekas
abf8010eae Merge branch '4.4' into 5.1
* 4.4:
  Fix transient tests
  Fix class resolution in Doctrine EventListenerPass
  [Serializer] Fix tests  marked as incomplete
  [Translator] fix handling plural for floating numbers
  fix redis messenger options with dsn
  Update ConsoleEvents.php
  allow Doctrine persistence 2 too
  [Messenger] Fix transporting non-UTF8 payloads by encoding them using base 64
  add doctrine/persistence as a dev requirement
  Exclude non-initialized properties accessed with getters
2021-01-27 10:04:36 +01:00
Nicolas Grekas
c925f4cff8 minor #39987 [HttpKernel] Fix transient tests (jderusse)
This PR was merged into the 4.4 branch.

Discussion
----------

[HttpKernel] Fix transient tests

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

Because request contains a `REQUEST_TIME` attribute, it make tests failing https://ci.appveyor.com/project/fabpot/symfony/builds/37455398

Commits
-------

9562d6ba5a Fix transient tests
2021-01-27 09:41:19 +01:00
Nicolas Grekas
190f089fee minor #39990 [DoctrineBridge] Fix class resolution in Doctrine EventListenerPass (jderusse)
This PR was merged into the 4.4 branch.

Discussion
----------

[DoctrineBridge] Fix class resolution in Doctrine EventListenerPass

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

Commits
-------

08b2da79e8 Fix class resolution in Doctrine EventListenerPass
2021-01-27 09:30:24 +01:00
Jérémy Derussé
9562d6ba5a
Fix transient tests 2021-01-27 01:05:29 +01:00
Jérémy Derussé
08b2da79e8
Fix class resolution in Doctrine EventListenerPass 2021-01-27 01:01:34 +01:00
Nicolas Grekas
484a95d8d1 bug #38900 [Serializer] Exclude non-initialized properties accessed with getters (BoShurik)
This PR was merged into the 4.4 branch.

Discussion
----------

[Serializer] Exclude non-initialized properties accessed with getters

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

Allow to serialize
```php
final class Php74DummyPrivate
{
    private string $uninitializedProperty;

    private string $initializedProperty = 'defaultValue';

    public function getUninitializedProperty(): string
    {
        return $this->uninitializedProperty;
    }

    public function getInitializedProperty(): string
    {
        return $this->initializedProperty;
    }
}
```

Similar to #34791

Commits
-------

da9100320e Exclude non-initialized properties accessed with getters
2021-01-26 21:44:18 +01:00
Nicolas Grekas
ffdc46c86b minor #39975 [Serializer] Fix tests wrongly marked as incomplete (chalasr)
This PR was merged into the 4.4 branch.

Discussion
----------

[Serializer] Fix tests wrongly marked as incomplete

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

https://github.com/symfony/symfony/pull/30907 has been merged meanwhile.

Commits
-------

e632302004 [Serializer] Fix tests  marked as incomplete
2021-01-26 21:39:55 +01:00
Nicolas Grekas
f7e6196ded bug #39982 [SecurityBundle] Fix referencing aliases from RegisterEntryPointsPass (chalasr)
This PR was merged into the 5.2 branch.

Discussion
----------

[SecurityBundle] Fix referencing aliases from RegisterEntryPointsPass

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

Resolving child definitions' classes in this pass unlocks registering it as `TYPE_BEFORE_OPTIMIZATION`, and get rid of the issue reported in #39881.
The parent class resolution logic was borrowed from an existing pass (RegisterEventListenersAndSubscribersPass), that makes it the best solution I can think of.

Commits
-------

8dcc3d61c5 [SecurityBundle] Fix referencing aliases from RegisterEntryPointPass
2021-01-26 21:37:00 +01:00
Robin Chalas
8dcc3d61c5 [SecurityBundle] Fix referencing aliases from RegisterEntryPointPass 2021-01-26 16:45:37 +01:00
Robin Chalas
e632302004 [Serializer] Fix tests marked as incomplete 2021-01-26 11:29:51 +01:00
Christian Flothmann
85989c3678 keep valid submitted choices when additional choices are submitted 2021-01-26 10:39:19 +01:00
Nicolas Grekas
97779ec318 bug #39872 [Validator] propagate the object being validated to nested constraints (xabbuh)
This PR was merged into the 5.1 branch.

Discussion
----------

[Validator] propagate the object being validated to nested constraints

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

Commits
-------

8c1bac90aa propagate the object being validated to sub-constraints
2021-01-26 10:36:50 +01:00
Christian Flothmann
8c1bac90aa propagate the object being validated to sub-constraints 2021-01-26 10:29:29 +01:00
Nicolas Grekas
4b8983aef5 bug #39887 [Translator] fix handling plural for floating numbers (kylekatarnls)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Translator] fix handling plural for floating numbers

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #30215
| License       | MIT

Commits
-------

533cd7ef6c [Translator] fix handling plural for floating numbers
2021-01-26 10:08:00 +01:00
kylekatarnls
533cd7ef6c [Translator] fix handling plural for floating numbers 2021-01-26 10:07:54 +01:00
Nicolas Grekas
aa5ca01ed0 bug #39967 [Messenger] fix redis messenger options with dsn (Kleinast)
This PR was submitted for the 5.1 branch but it was merged into the 4.4 branch instead.

Discussion
----------

[Messenger] fix redis messenger options with dsn

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #39834
| License       | MIT

This will fix the fact that you can use framework.messenger.transports.*.options to complete/default your redis configuration

Commits
-------

a0e7bf4c0d fix redis messenger options with dsn
2021-01-26 09:57:27 +01:00
Bastien Picharles
a0e7bf4c0d fix redis messenger options with dsn 2021-01-26 09:57:06 +01:00
Alexander M. Turek
d244e796b6 minor #39964 [Console] Fix typo in console.command description (oceanicpanda)
This PR was submitted for the 5.x branch but it was merged into the 4.4 branch instead.

Discussion
----------

[Console] Fix typo in console.command description

input and output can be handed to the command, handed off to the command, or can be handled by the command, but handled to the command doesn't work

| Q             | A
| ------------- | ---
| Branch?       | 5.x
| 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 -->

Commits
-------

38fd86f34e Update ConsoleEvents.php
2021-01-26 09:54:48 +01:00
Steve Hyde
38fd86f34e Update ConsoleEvents.php
input and output can be handed to the command, handed off to the command, or can be handled by the command, but handled to the command doesn't work
2021-01-26 09:54:39 +01:00
Alexander M. Turek
77401ef844 minor #39973 allow Doctrine persistence 2 too (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

allow Doctrine persistence 2 too

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix https://github.com/symfony/symfony/pull/39968#pullrequestreview-575900703
| License       | MIT
| Doc PR        |

Commits
-------

11a9e10beb allow Doctrine persistence 2 too
2021-01-26 09:42:19 +01:00
Christian Flothmann
11a9e10beb allow Doctrine persistence 2 too 2021-01-26 08:56:21 +01:00
Fabien Potencier
43eb050c0d bug #39970 [Messenger] Fix transporting non-UTF8 payloads by encoding them using base 64 (nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

[Messenger] Fix transporting non-UTF8 payloads by encoding them using base 64

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

Replaces #33920

When using the Doctrine transport, sending emails with binary attachments currently requires a custom Messenger serializer because the "body" column is created for UTF-8 only.

In #33920, it is proposed to change the TEXT type to a BLOB. It leaves at least one problem unhandled: the conversion of existing messenger tables.

This PR takes a more conservative approach, by encoding messages to base 64, only if they are non-UTF8.

Compatibility with the existing format is preserved.

The drawback of this approach is that the size of eg email attachments is going to increase by 33% because of the extra encoding. I think this drawback is acceptable for 4.4, and that this PR is the most pragmatic way to make attachments just work.

Commits
-------

6fc9e51722 [Messenger] Fix transporting non-UTF8 payloads by encoding them using base 64
2021-01-25 22:43:21 +01:00