Commit Graph

47854 Commits

Author SHA1 Message Date
Fabien Potencier b470af1d1b minor #35970 [VarDumper] DumpServer: log whenever a payload is received (ogizanagi)
This PR was merged into the 5.1-dev branch.

Discussion
----------

[VarDumper] DumpServer: log whenever a payload is received

| 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       | N/A <!-- prefix each issue number with "Fix #", if any -->
| License       | MIT
| Doc PR        | N/A <!-- required for new features -->

Small improvement so you can get a feedback in the console when a dump was received by using `-vv`:

![Capture d’écran 2020-03-05 à 12 02 34](https://user-images.githubusercontent.com/2211145/75975709-4d899d80-5ed9-11ea-942f-e76a62d82218.png)

Commits
-------

7cfc3ced9d [VarDumper] DumpServer: log whenever a payload is received
2020-03-05 16:36:45 +01:00
Robin Chalas 45c4ffaa59 feature #35960 [Security/Http] Hash Persistent RememberMe token (guillbdx)
This PR was squashed before being merged into the 5.1-dev branch (closes #35960).

Discussion
----------

[Security/Http] Hash Persistent RememberMe token

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | Fix #27910
| License       | MIT
| Doc PR        | Not sure this enhancement needs documentation

The purpose of this PR is to enhance the Remember Me persistent token feature: instead of storing cleared token value in DB, the values will be hashed.
To make sure that existing remember me cookies will keep being valid after this change, we prefix the new token values with 'hash_'. In case the token value doesn't match this prefix, we keep validating it the old way.

Commits
-------

e2425b9ece [Security/Http] Hash Persistent RememberMe token
2020-03-05 15:13:50 +01:00
Guillaume Pédelagrabe e2425b9ece [Security/Http] Hash Persistent RememberMe token 2020-03-05 15:13:42 +01:00
Maxime Steinhausser 7cfc3ced9d [VarDumper] DumpServer: log whenever a payload is received 2020-03-05 11:59:11 +01:00
Fabien Potencier 7c90c8ba84 minor #35948 [String] move symfony/translation-contracts to require-dev (nicolas-grekas)
This PR was merged into the 5.1-dev branch.

Discussion
----------

[String] move symfony/translation-contracts to require-dev

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

Since it's needed only if `AsciiSlugger` is used.
Surprisingly, the code in `FrameworkExtension` deals with this as if the dep was already optional:
210ea2202b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php (L217-L220)

Commits
-------

aea80edc78 [String] move symfony/translation-contracts to require-dev
2020-03-04 06:35:35 +01:00
Nicolas Grekas aea80edc78 [String] move symfony/translation-contracts to require-dev 2020-03-03 22:05:19 +01:00
Fabien Potencier 210ea2202b minor #35935 [String] fix failing test on PHP 8 (nicolas-grekas)
This PR was merged into the 5.1-dev branch.

Discussion
----------

[String] fix failing test on PHP 8

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

`__toString()` must be public in PHP 8.

Commits
-------

0a2f7b2ceb [String] fix failing test on PHP 8
2020-03-03 14:52:45 +01:00
Nicolas Grekas 0a2f7b2ceb [String] fix failing test on PHP 8 2020-03-03 11:04:25 +01:00
Fabien Potencier f632b76824 feature #35115 [HttpClient] Add portable HTTP/2 implementation based on Amp's HTTP client (nicolas-grekas)
This PR was merged into the 5.1-dev branch.

Discussion
----------

[HttpClient] Add portable HTTP/2 implementation based on Amp's HTTP client

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

This PR provides an `AmpHttpClient`, which is an adapter between [`amphp/http-client`](https://github.com/amphp/http-client) and `symfony/http-client-contracts`.

~This is an early experiment for now, but it works already on the happy path:~ I have a local h2-intensive script, and while it's slower than CurlHttpClient, this performs quite well!

This could provide a portable implementation of HTTP/2 \o/

/cc @kelunik FYI

Todo:
- [x] async request/response
- [x] streaming and multiplexing
- [x] handle all ssl options
- [x] timers info
- [x] upload/download progress info
- [x] upload/download progress callback
- [x] HTTP proxy support
- [x] streamed upload
- [x] public-key pinning
- [x] peer certificate capturing
- [x] stream casting with `$response->toStream()`
- [x] ~https://github.com/amphp/http-client/pull/241~
- [x] extensive debug info
- [x] HTTP/2 PUSH support
- [x] https://github.com/amphp/http-client/issues/243
- [x] https://github.com/amphp/http-client/issues/242
- [x] https://github.com/amphp/http-client/pull/250
- [x] https://github.com/amphp/http-client/pull/239
- [x] ~https://github.com/kelunik/certificate/pull/2~
- [x] https://github.com/amphp/socket/pull/71
- [x] https://github.com/amphp/http-client/issues/252

Commits
-------

ef113feeb3 [HttpClient] Add portable HTTP/2 implementation based on Amp's HTTP client
2020-03-02 15:21:41 +01:00
Fabien Potencier 2265a5778e bug #35907 [FrameworkBundle] register only existing transport factories (xabbuh)
This PR was merged into the 5.1-dev branch.

Discussion
----------

[FrameworkBundle] register only existing transport factories

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

Commits
-------

24322cffdb register only existing transport factories
2020-03-02 14:31:42 +01:00
Christian Flothmann 24322cffdb register only existing transport factories 2020-03-02 14:23:01 +01:00
Nicolas Grekas ef113feeb3 [HttpClient] Add portable HTTP/2 implementation based on Amp's HTTP client 2020-03-02 14:21:45 +01:00
Fabien Potencier 645ccc8eac Merge branch '5.0'
* 5.0:
  register only existing transport factories
  prevent deprecation being triggered from assertion
  bumped Symfony version to 5.0.6
  updated VERSION for 5.0.5
  updated CHANGELOG for 5.0.5
  bumped Symfony version to 4.4.6
  updated VERSION for 4.4.5
  updated CHANGELOG for 4.4.5
2020-03-02 13:36:47 +01:00
Fabien Potencier 8c778cbaa3 Merge branch '4.4' into 5.0
* 4.4:
  register only existing transport factories
  prevent deprecation being triggered from assertion
  bumped Symfony version to 4.4.6
  updated VERSION for 4.4.5
  updated CHANGELOG for 4.4.5
2020-03-02 13:33:16 +01:00
Fabien Potencier 4ab87747ad bug #35912 [FrameworkBundle] register only existing transport factories (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[FrameworkBundle] register only existing transport factories

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

The parts from #35907 that also apply to the `4.4` branch.

Commits
-------

650c9f3f4b register only existing transport factories
2020-03-02 13:31:21 +01:00
Christian Flothmann 650c9f3f4b register only existing transport factories 2020-03-02 13:28:23 +01:00
Fabien Potencier 0936a4e75f bug #35899 [DomCrawler] prevent deprecation being triggered from assertion (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[DomCrawler] prevent deprecation being triggered from assertion

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

Commits
-------

b01a10c760 prevent deprecation being triggered from assertion
2020-03-02 13:08:26 +01:00
Fabien Potencier db46f3bede feature #35913 [LDAP] Add error code in exceptions generated by ldap (Victor Garcia)
This PR was squashed before being merged into the 5.1-dev branch.

Discussion
----------

[LDAP] Add error code in exceptions generated by ldap

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

This PR add the exception code returned by ldap PHP component to LdapException, and allow users a better way to detect the errors. Before this LdapException allways return code 0, and make neccesary evaluate the string returned to detect the error.

Commits
-------

b4c90f08f1 [LDAP] Add error code in exceptions generated by ldap
2020-03-02 11:50:15 +01:00
Victor Garcia b4c90f08f1 [LDAP] Add error code in exceptions generated by ldap 2020-03-02 11:50:09 +01:00
Christian Flothmann b01a10c760 prevent deprecation being triggered from assertion 2020-03-01 20:15:08 +01:00
Fabien Potencier b04484c3cf bumped Symfony version to 5.0.6 2020-02-29 13:30:49 +01:00
Fabien Potencier 28a7546601
Merge pull request #35906 from fabpot/release-5.0.5
released v5.0.5
2020-02-29 11:41:46 +01:00
Fabien Potencier 9e1fab60f5 updated VERSION for 5.0.5 2020-02-29 11:41:30 +01:00
Fabien Potencier 6ea479767f updated CHANGELOG for 5.0.5 2020-02-29 11:41:24 +01:00
Fabien Potencier 2bd76fa32c bumped Symfony version to 4.4.6 2020-02-29 11:35:30 +01:00
Fabien Potencier b802dd453f
Merge pull request #35905 from fabpot/release-4.4.5
released v4.4.5
2020-02-29 11:31:55 +01:00
Fabien Potencier 6c52d481e7 updated VERSION for 4.4.5 2020-02-29 11:31:38 +01:00
Fabien Potencier 199bfceb7d updated CHANGELOG for 4.4.5 2020-02-29 11:31:29 +01:00
Fabien Potencier 6429999e91 Merge branch '5.0'
* 5.0:
  [Dotenv] Documentation improvement
  [DI] Clarified deprecation for TypedReference in 4.4
  [Validator] Add missing vietnamese translations
  add German translation
  add missing Messenger options to XML schema definition
  [5.0] Remove some unused variables
  [Validator][ConstraintValidator] Update wrong PRETTY_DATE doc
  [DomCrawler][Form] Fix PHPDoc on get & offsetGet
  [ErrorHandler] fix parsing static return type on interface method annotation (fix #35836)
  prevent method calls on null values
  Return int if scale = 0
2020-02-29 11:07:16 +01:00
Fabien Potencier 65d06cbd41 Merge branch '4.4' into 5.0
* 4.4:
  [Dotenv] Documentation improvement
  [DI] Clarified deprecation for TypedReference in 4.4
  [Validator] Add missing vietnamese translations
  add German translation
  add missing Messenger options to XML schema definition
  [Validator][ConstraintValidator] Update wrong PRETTY_DATE doc
  [DomCrawler][Form] Fix PHPDoc on get & offsetGet
  [ErrorHandler] fix parsing static return type on interface method annotation (fix #35836)
  prevent method calls on null values
  Return int if scale = 0
2020-02-29 11:07:09 +01:00
Fabien Potencier 8f7b8aa41d Merge branch '3.4' into 4.4
* 3.4:
  [Validator] Add missing vietnamese translations
  add German translation
  [Validator][ConstraintValidator] Update wrong PRETTY_DATE doc
  [DomCrawler][Form] Fix PHPDoc on get & offsetGet
  prevent method calls on null values
  Return int if scale = 0
2020-02-29 11:05:28 +01:00
Fabien Potencier 4ac38ef200 minor #35887 [Dotenv] Documentation improvement (jonmldr)
This PR was submitted for the master branch but it was merged into the 4.4 branch instead.

Discussion
----------

[Dotenv] Documentation improvement

| 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 -->
| License       | MIT
<!--
Replace this notice by a short README for your feature/bugfix. This will help people
understand your PR and can be used as a start for the documentation.

Additionally (see https://symfony.com/releases):
 - Always add tests and ensure they pass.
 - Never break backward compatibility (see https://symfony.com/bc).
 - Bug fixes must be submitted against the lowest maintained branch where they apply
   (lowest branches are regularly merged to upper ones so they get the fixes too.)
 - Features and deprecations must be submitted against branch master.
-->

Equalization with the component description in the [documentation](https://symfony.com/doc/current/components/dotenv.html).
My suggestion is to remove `getenv()` from this description. [Since Symfony 4.3](https://github.com/symfony/symfony/blob/master/UPGRADE-4.3.md), `$usePutenv = false` by default in `Dotenv::__construct()`. Because of this, `getenv()` is not usable by default.

Commits
-------

4f61247ccc [Dotenv] Documentation improvement
2020-02-29 11:04:08 +01:00
jonmldr 4f61247ccc [Dotenv] Documentation improvement 2020-02-29 11:04:02 +01:00
Fabien Potencier 0888ff6dbd minor #35894 [ExpressionLanguage] Fixed exception message (atailouloute)
This PR was merged into the 5.1-dev branch.

Discussion
----------

[ExpressionLanguage] Fixed exception message

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

Commits
-------

4d695b380d [ExpressionLanguage] Fixed exception message
2020-02-29 11:02:13 +01:00
Fabien Potencier 34c2e96b08 bug #35781 [Form] NumberToLocalizedStringTransformer return int if scale = 0 (VincentLanglet)
This PR was merged into the 3.4 branch.

Discussion
----------

[Form] NumberToLocalizedStringTransformer return int if scale = 0

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #35775
| License       | MIT
<!--
Replace this notice by a short README for your feature/bugfix. This will help people
understand your PR and can be used as a start for the documentation.

Additionally (see https://symfony.com/releases):
 - Always add tests and ensure they pass.
 - Never break backward compatibility (see https://symfony.com/bc).
 - Bug fixes must be submitted against the lowest maintained branch where they apply
   (lowest branches are regularly merged to upper ones so they get the fixes too.)
 - Features and deprecations must be submitted against branch master.
-->

Commits
-------

2993fc9fc5 Return int if scale = 0
2020-02-29 10:59:06 +01:00
Fabien Potencier 146945ad8e feature #35782 [Routing] Add stateless route attribute (mtarld)
This PR was merged into the 5.1-dev branch.

Discussion
----------

[Routing] Add stateless route attribute

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Ticket		| https://github.com/orgs/symfony/projects/1#card-30506005
| License       | MIT
| Doc PR        | TODO

On top of https://github.com/symfony/symfony/pull/35732

Add a stateless attribute for:
Routes in annotations
```
@Route(stateless=true)
```
Yaml
```yml
route:
  stateless: true
```
Xml
```xml
<route stateless="true" />
```
PHP configurator
```php
$route->stateless(true);
```

That stateless attribute is a shortcut for setting `_stateless` default attribute in route.

Commits
-------

2da68bae8f [Routing] Add stateless route attribute
2020-02-29 10:56:15 +01:00
Fabien Potencier 7295d25f32 bug #35846 [Serializer] prevent method calls on null values (xabbuh)
This PR was merged into the 3.4 branch.

Discussion
----------

[Serializer] prevent method calls on null values

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

Commits
-------

847d6dc8f3 prevent method calls on null values
2020-02-29 10:53:07 +01:00
Fabien Potencier dc9a0b586f bug #35897 [FrameworkBundle] add missing Messenger options to XML schema definition (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[FrameworkBundle] add missing Messenger options to XML schema definition

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix symfony/symfony-docs#13010
| License       | MIT
| Doc PR        | symfony/symfony-docs#13277

Commits
-------

45a033d67b add missing Messenger options to XML schema definition
2020-02-29 10:50:54 +01:00
Fabien Potencier 8ed2e66de4 minor #35898 [DI] Clarified deprecation for TypedReference in 4.4 (linaori)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[DI] Clarified deprecation for TypedReference in 4.4

| 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       | Fix #35752 <!-- prefix each issue number with "Fix #", if any -->
| License       | MIT
| Doc PR        |~ <!-- required for new features -->

Changes the deprecation message to indicate the argument has been removed and how to fix it.

Commits
-------

1c70048e9c [DI] Clarified deprecation for TypedReference in 4.4
2020-02-29 10:50:10 +01:00
Lynn 1c70048e9c [DI] Clarified deprecation for TypedReference in 4.4 2020-02-29 10:50:04 +01:00
Fabien Potencier 4520e61045 minor #35895 Added ROLE_PREVIOUS_ADMIN deprecation to UPGRADE guide (wouterj)
This PR was merged into the 5.1-dev branch.

Discussion
----------

Added ROLE_PREVIOUS_ADMIN deprecation to UPGRADE guide

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

I forgot to update the UPGRADE guides in https://github.com/symfony/symfony/pull/35858

Commits
-------

3c8d316f65 Added ROLE_PREVIOUS_ADMIN deprecation to UPGRADE guide
2020-02-29 10:49:11 +01:00
Fabien Potencier eff7d14402 minor #35902 [Validator] add Japanese translation (souweb22)
This PR was merged into the 5.1-dev branch.

Discussion
----------

[Validator] add Japanese translation

| Q             | A
| ------------- | ---
| Branch?       | master<!-- 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       | -<!-- prefix each issue number with "Fix #", if any -->
| License       | MIT
| Doc PR        | -<!-- required for new features -->

I added a Japanese translation, taking into account existing translations.

Commits
-------

90104a919d [Validator] add Japanese translation
2020-02-29 10:09:43 +01:00
Fabien Potencier 6c042661e2 minor #35901 [Validator] add German translation (xabbuh)
This PR was merged into the 3.4 branch.

Discussion
----------

[Validator] add German translation

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

Commits
-------

9d837ecb34 add German translation
2020-02-29 10:08:42 +01:00
Fabien Potencier e4104b6411 minor #35903 [Validator] add Vietnamese translation (jschaedl)
This PR was merged into the 3.4 branch.

Discussion
----------

[Validator] add Vietnamese translation

| 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       |  <!-- prefix each issue number with "Fix #", if any -->
| License       | MIT
| Doc PR        |  <!-- required for new features -->
<!--
Replace this notice by a short README for your feature/bugfix. This will help people
understand your PR and can be used as a start for the documentation.

Additionally (see https://symfony.com/releases):
 - Always add tests and ensure they pass.
 - Never break backward compatibility (see https://symfony.com/bc).
 - Bug fixes must be submitted against the lowest maintained branch where they apply
   (lowest branches are regularly merged to upper ones so they get the fixes too.)
 - Features and deprecations must be submitted against branch master.
-->

Commits
-------

c16d153522 [Validator] Add missing vietnamese translations
2020-02-29 10:07:39 +01:00
Jan Schädlich c16d153522 [Validator] Add missing vietnamese translations 2020-02-29 09:57:15 +01:00
arai 90104a919d [Validator] add Japanese translation 2020-02-29 09:37:39 +09:00
Christian Flothmann 9d837ecb34 add German translation 2020-02-28 15:30:03 +01:00
Christian Flothmann 45a033d67b add missing Messenger options to XML schema definition 2020-02-28 14:15:16 +01:00
Wouter de Jong 3c8d316f65 Added ROLE_PREVIOUS_ADMIN deprecation to UPGRADE guide 2020-02-28 12:20:28 +01:00
Ahmed TAILOULOUTE 4d695b380d [ExpressionLanguage] Fixed exception message 2020-02-28 11:19:56 +01:00