Commit Graph

51416 Commits

Author SHA1 Message Date
Nicolas Grekas
2f7751f0df fix merge 2020-10-06 13:56:58 +02:00
Nicolas Grekas
097c8c6f27 Merge branch '4.4' into 5.1
* 4.4:
  [appveyor] fix checking for the .x branch
  Remove "branch-alias", populate "version"
2020-10-06 13:49:34 +02:00
Nicolas Grekas
0c3447f94c Merge branch '3.4' into 4.4
* 3.4:
  [appveyor] fix checking for the .x branch
2020-10-06 13:43:00 +02:00
Nicolas Grekas
f4a1885b8d [appveyor] fix checking for the .x branch 2020-10-06 13:42:19 +02:00
Nicolas Grekas
e553f424d0 Merge branch '3.4' into 4.4
* 3.4:
  Remove "branch-alias", populate "version"
2020-10-06 13:41:17 +02:00
Nicolas Grekas
b715f462b3 minor #38431 Remove "branch-alias", populate "version" (nicolas-grekas)
This PR was merged into the 3.4 branch.

Discussion
----------

Remove "branch-alias", populate "version"

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

Commits
-------

9d40c796c4 Remove "branch-alias", populate "version"
2020-10-06 13:32:04 +02:00
Nicolas Grekas
9d40c796c4 Remove "branch-alias", populate "version" 2020-10-06 13:22:52 +02:00
Nicolas Grekas
1428e6dff9 bug #38422 [SecurityGuard] Implement PostAuthenticationGuardToken::getFirewallName() (derrabus)
This PR was submitted for the master branch but it was merged into the 5.x branch instead.

Discussion
----------

[SecurityGuard] Implement PostAuthenticationGuardToken::getFirewallName()

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #38421
| License       | MIT
| Doc PR        | N/A

Commits
-------

66fbf0a671 [SecurityGuard] Implement PostAuthenticationGuardToken::getFirewallName().
2020-10-06 11:21:18 +02:00
Alexander M. Turek
66fbf0a671 [SecurityGuard] Implement PostAuthenticationGuardToken::getFirewallName(). 2020-10-06 11:21:13 +02:00
Fabien Potencier
8df5aad90a Merge branch '5.1' into 5.x
* 5.1:
  Move to the new default 5.x branch
  Use PHPUnit 9.4 to run the test suite.
  Fix type annotation
2020-10-06 10:08:38 +02:00
Fabien Potencier
da99063ccd Merge branch '4.4' into 5.1
* 4.4:
  Move to the new default 5.x branch
  Use PHPUnit 9.4 to run the test suite.
  Fix type annotation
2020-10-06 10:08:25 +02:00
Fabien Potencier
b47ba231ef Merge branch '3.4' into 4.4
* 3.4:
  Move to the new default 5.x branch
  Use PHPUnit 9.4 to run the test suite.
  Fix type annotation
2020-10-06 10:07:23 +02:00
Fabien Potencier
40dc7e6278 minor #38425 Move to the new default 5.x branch (fabpot)
This PR was merged into the 3.4 branch.

Discussion
----------

Move to the new default 5.x branch

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

Commits
-------

25e5fa6611 Move to the new default 5.x branch
2020-10-06 10:06:52 +02:00
Fabien Potencier
25e5fa6611 Move to the new default 5.x branch 2020-10-06 10:06:05 +02:00
Fabien Potencier
81833b6235 feature #38393 [FrameworkBundle] Add option --as-tree to translation:update command (jschaedl)
This PR was squashed before being merged into the 5.2-dev branch.

Discussion
----------

[FrameworkBundle] Add option --as-tree to translation:update command

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

Before:

```
$ bin/console translation:update --domain messages --output-format=yml --force en

# messages.yaml
app.backend.title: __app.backend.title
app.backend.content: __app.backend.content
```

After:

```
$ bin/console translation:update --domain messages --output-format=yml --force --as-tree=3 en

# messages.yaml
app:
    backend:
        title: __app.backend.title
        content: __app.backend.content
```

Commits
-------

62cb77a6cd [FrameworkBundle] Add option --as-tree to translation:update command
2020-10-06 07:39:06 +02:00
Jan Schädlich
62cb77a6cd [FrameworkBundle] Add option --as-tree to translation:update command 2020-10-06 07:38:58 +02:00
Fabien Potencier
c4141f5771 bug #38419 [DoctrineBridge] fix and replace namespace to Uid (maxhelias)
This PR was merged into the 5.2-dev branch.

Discussion
----------

[DoctrineBridge] fix and replace namespace to Uid

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

This post should also be corrected: https://symfony.com/blog/new-in-symfony-5-2-doctrine-types-for-uuid-and-ulid cc @javiereguiluz

Commits
-------

28d1169714 [DoctrineBridge] fix and replace namespace to Uid
2020-10-06 07:35:17 +02:00
Fabien Potencier
2f925df4db feature #38410 [Validator] Migrate File and Image constraints to attributes (derrabus)
This PR was merged into the 5.2-dev branch.

Discussion
----------

[Validator] Migrate File and Image constraints to attributes

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | #38096
| License       | MIT
| Doc PR        | TODO with symfony/symfony-docs#14305

I have migrated a lot of the constraints already and am preparing a big PR with them at the moment. I decided to pull this part out because it might raise some discussion.

This PR enables the `File` and `Image` constraints to be used as attributes. Especially the constructor signature of the `Image` constraint has grown pretty large this way. This by itself should be a big problem, if we don't expect the constructor to be called with ordered parameters by userland code. But it shows that the constraints have grown a bit too large. We might want to consider to split it.

Commits
-------

d8c186938e [Validator] Migrate File and Image constraints to attributes.
2020-10-06 07:32:58 +02:00
Maxime Hélias
28d1169714 [DoctrineBridge] fix and replace namespace to Uid 2020-10-05 23:45:00 +02:00
Fabien Potencier
a324b22d1a bug #38418 [HttpClient] minor fixes in RetryableHttpClient (nicolas-grekas)
This PR was merged into the 5.2-dev branch.

Discussion
----------

[HttpClient] minor fixes in RetryableHttpClient

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

Commits
-------

495562836a [HttpClient] minor fixes in RetryableHttpClient
2020-10-05 19:15:39 +02:00
Fabien Potencier
a4ceab6a14 feature #38253 [Cache] Allow ISO 8601 time intervals to specify default lifetime (lstrojny)
This PR was merged into the 5.2-dev branch.

Discussion
----------

[Cache] Allow ISO 8601 time intervals to specify default lifetime

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

`Psr\Cache\CacheItemInterface::expiresAfter()` takes `DateInterval` for expiration but Symfony’s cache config only takes an integer. Time intervals are a bit better to read so this adds the capability.

Commits
-------

a2508ac3e7 [Cache] Allow ISO 8601 time intervals to specify default lifetime
2020-10-05 19:14:35 +02:00
Nicolas Grekas
495562836a [HttpClient] minor fixes in RetryableHttpClient 2020-10-05 18:23:31 +02:00
Fabien Potencier
28129c81d7 Bump Symfony version to 5.2.0 2020-10-05 16:44:01 +02:00
Fabien Potencier
6fba768564
Merge pull request #38417 from fabpot/release-5.2.0-BETA1
released v5.2.0-BETA1
2020-10-05 16:37:17 +02:00
Fabien Potencier
7f6a21cd6b Update VERSION for 5.2.0-BETA1 2020-10-05 16:36:53 +02:00
Fabien Potencier
ff6495272d Update CHANGELOG for 5.2.0-BETA1 2020-10-05 16:36:41 +02:00
Lars Strojny
a2508ac3e7 [Cache] Allow ISO 8601 time intervals to specify default lifetime 2020-10-05 15:19:55 +02:00
Nicolas Grekas
5a3e1db9ce minor #38413 [HttpClient] change piority of RetryableHttpClient (jderusse)
This PR was merged into the 5.2-dev branch.

Discussion
----------

[HttpClient] change piority of RetryableHttpClient

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

This make the RetryableHttpClient decorated the TraceableHttpClient.
User will be able to check content of each sub-request

Commits
-------

9568d437f9 Change priority of RetryableHttpClient
2020-10-05 10:23:57 +02:00
Jérémy Derussé
9568d437f9
Change priority of RetryableHttpClient 2020-10-05 10:04:53 +02:00
Fabien Potencier
3f2af74158 minor #38411 Use PHPUnit 9.4 to run the test suite (derrabus)
This PR was merged into the 3.4 branch.

Discussion
----------

Use PHPUnit 9.4 to run the test suite

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

Commits
-------

de6a852b46 Use PHPUnit 9.4 to run the test suite.
2020-10-05 08:28:29 +02:00
Alexander M. Turek
de6a852b46 Use PHPUnit 9.4 to run the test suite. 2020-10-04 22:06:12 +02:00
Alexander M. Turek
d8c186938e [Validator] Migrate File and Image constraints to attributes. 2020-10-04 21:22:16 +02:00
Fabien Potencier
a60c0af953 minor #38408 Fix type annotation in ExpressionLanguage\Token (m-vo)
This PR was merged into the 3.4 branch.

Discussion
----------

Fix type annotation in ExpressionLanguage\Token

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

The expected argument `$type` should be a string - the strict comparison would always fail with the current annotated types (`array|int`).

See the constructor + constants for reference:
7db7dcc431/src/Symfony/Component/ExpressionLanguage/Token.php (L33)

7db7dcc431/src/Symfony/Component/ExpressionLanguage/Token.php (L25-L30)

Commits
-------

bfde15b728 Fix type annotation
2020-10-04 18:40:24 +02:00
Fabien Potencier
cb3e18a925 Merge branch '5.1'
* 5.1:
  Change test
2020-10-04 18:36:01 +02:00
Fabien Potencier
5e808b59ec Merge branch '4.4' into 5.1
* 4.4:
  Change test
2020-10-04 18:35:53 +02:00
Fabien Potencier
20969e604b Merge branch '3.4' into 4.4
* 3.4:
  Change test
2020-10-04 18:35:43 +02:00
Fabien Potencier
bfcf65f61c Change test 2020-10-04 18:34:28 +02:00
Fabien Potencier
57ad83e7e1 Merge branch '5.1'
* 5.1:
  Added Stopwatch example to the README
  Bump Symfony version to 5.1.8
  Update VERSION for 5.1.7
  Update CHANGELOG for 5.1.7
  Bump Symfony version to 4.4.16
  Update VERSION for 4.4.15
  Update CHANGELOG for 4.4.15
2020-10-04 18:29:51 +02:00
Fabien Potencier
84bec1df2d Merge branch '4.4' into 5.1
* 4.4:
  Added Stopwatch example to the README
  Bump Symfony version to 4.4.16
  Update VERSION for 4.4.15
  Update CHANGELOG for 4.4.15
2020-10-04 18:29:28 +02:00
Fabien Potencier
619509e3c3 minor #38409 [Stopwatch] Added example to the README (wouterj)
This PR was merged into the 4.4 branch.

Discussion
----------

[Stopwatch] Added example to the README

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | https://github.com/symfony/symfony-docs/pull/14333

Commits
-------

e2461c90d2 Added Stopwatch example to the README
2020-10-04 17:43:30 +02:00
Wouter de Jong
e2461c90d2 Added Stopwatch example to the README 2020-10-04 14:01:13 +02:00
M. Vondano
bfde15b728
Fix type annotation 2020-10-04 12:25:24 +02:00
Fabien Potencier
c91ad1239f feature #38382 [Validator] Use comparison constraints as attributes (derrabus)
This PR was merged into the 5.2-dev branch.

Discussion
----------

[Validator] Use comparison constraints as attributes

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | yes
| Tickets       | #38096
| License       | MIT
| Doc PR        | TODO, let's add it to symfony/symfony-docs#14305

This PR enables all child classes of `AbstractComparison` to be used as attributes.

Some of those constraints used a trait called `NumberConstraintTrait` for a shared implementation. After my changes, that trait did not fit well anymore, so I've added a new `ZeroComparisonConstraintTrait` as a replacement. Although I don't expect `NumberConstraintTrait` to provide much value outside of the Symfony codebase, I think we cannot safely change it because it was not labelled as `@internal`. This is basically why I went for the deprecation.

Commits
-------

b5bdf8288f [Validator] Use comparison constraints as attributes.
2020-10-04 10:54:16 +02:00
Fabien Potencier
dfcde5b409 feature #38369 [HttpFoundation] Expired cookies string representation consistency & tests (iquito)
This PR was squashed before being merged into the 5.2-dev branch.

Discussion
----------

[HttpFoundation] Expired cookies string representation consistency & tests

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

These changes add consistent behavior when converting expired cookies back and forth from string representation into `Symfony\Component\HttpFoundation\Cookie` instances in `Cookie::fromString`:

- When `Max-Age` is zero and `expires` is in the past, the `expires` date is kept as is (previous behavior: `expires` is overwritten with current timestamp because it is reset to current timestamp + `Max-Age`)
- When `Max-Age` is zero and `expires` is in the future, expires is reset to current timestamp, as `Max-Age` is the preferred "source of truth" (same as previous behavior)
- Add tests for how the Cookie class handles `Max-Age` in a cookie string and how `expires` and `Max-Age` interact
- Extract helper function `expiresTimestamp` so converting to a unix timestamp can be reused in `Cookie::fromString`

This is more a new feature than a bug fix in my mind, therefore I would include it in 5.1+.

Commits
-------

4f5d5eceb0 [HttpFoundation] Expired cookies string representation consistency & tests
2020-10-04 10:45:41 +02:00
Andreas
4f5d5eceb0 [HttpFoundation] Expired cookies string representation consistency & tests 2020-10-04 10:45:35 +02:00
Fabien Potencier
383d73ed60 feature #38407 [Mime] Prefer .jpg instead of .jpeg (fabpot)
This PR was merged into the 5.2-dev branch.

Discussion
----------

[Mime] Prefer .jpg instead of .jpeg

| Q             | A
| ------------- | ---
| Branch?       | master
| 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 #38364 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT
| Doc PR        |

Commits
-------

89adb2133b [Mime] Prefer .jpg instead of .jpeg
2020-10-04 10:37:55 +02:00
Fabien Potencier
89adb2133b [Mime] Prefer .jpg instead of .jpeg 2020-10-04 10:36:21 +02:00
Fabien Potencier
a6103adcf9 Bump Symfony version to 5.1.8 2020-10-04 10:00:52 +02:00
Fabien Potencier
ccdb433279
Merge pull request #38406 from fabpot/release-5.1.7
released v5.1.7
2020-10-04 09:57:45 +02:00
Fabien Potencier
1d18312db6 Update VERSION for 5.1.7 2020-10-04 09:57:28 +02:00