Commit Graph

31410 Commits

Author SHA1 Message Date
Jérémy Derussé
51ff060603
Fix circular referene with Factory and LazyIterator 2020-11-04 15:21:44 +01:00
Fabien Potencier
57e39b41b9 feature #38850 [Messenger] Do not call getQueueUrl when the url is known in AmazonSqs transport (jderusse)
This PR was merged into the 5.2-dev branch.

Discussion
----------

[Messenger] Do not call getQueueUrl when the url is known in AmazonSqs transport

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

When user provides a DSN that looks like a queueUrl, we don't need to call the `getQueueUrl` method. This PR inject the known queueUrl and prevent performing a useless call to the API when sending a message

Commits
-------

f1f44d48e0 Do not call getQueueUrl when the url is known
2020-11-04 08:24:27 +01:00
Fabien Potencier
d2bac32525 feature #38940 [Messenger] Improve formatting of exception in failed message (Jeroen Noten)
This PR was merged into the 5.2-dev branch.

Discussion
----------

[Messenger] Improve formatting of exception in failed message

| Q             | A
| ------------- | ---
| Branch?       | 5.x
| Bug fix?      | no
| New feature?  | not really, enhancement of an existing feature
| Deprecations? | no
| Tickets       | Fix #32310
| License       | MIT

This PR improves the formatting of exception details in failed messenges when displayed using `messenger:failed:show <id> -vv`.

Before:
<img width="807" alt="Screen Shot 2020-11-01 at 1 05 24 PM" src="https://user-images.githubusercontent.com/4370753/97802602-ea593200-1c44-11eb-8bcb-7fcf2d3f1db0.png">

After:
<img width="803" alt="Screen Shot 2020-11-01 at 1 03 09 PM" src="https://user-images.githubusercontent.com/4370753/97802615-f0e7a980-1c44-11eb-8c12-46b2d4510364.png">

I created a `ThrownExceptionDetails` class which will be displayed as a normal exception when dumped with the VarDumper component. Not sure if this is the right way to do it and if the class is in the right namespace, but this is the best solution I could came up with to fix #32310. I'm open for other suggestions.

Commits
-------

2ad1adda69 [Messenger] Improve formatting of thrown exception in show failed message command
2020-11-04 08:21:06 +01:00
Fabien Potencier
6251c4ee6e feature #38954 [HttpFundation][FrameworkBundle] Deprecate the HEADER_X_FORWARDED_ALL constant (jderusse)
This PR was merged into the 5.2-dev branch.

Discussion
----------

[HttpFundation][FrameworkBundle] Deprecate the HEADER_X_FORWARDED_ALL constant

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

The `HEADER_X_FORWARDED_ALL` implicitly trust the `x-forwarded-host` header, leading to possible host header attack (as warned in the [documentation](https://symfony.com/doc/current/reference/configuration/framework.html#trusted-hosts).)

Moreover, this `HEADER_X_FORWARDED_ALL` does not really fowards **all** headers, as ti does not supports `X-Forwarded-Prefix` headers.

This PR deprecate the constant and the new framework bundle configuration. It will be removed in 6.0. People have to use: either:
- `Request::setTrustedProxies(['1.2.3.4'], Request::HEADER_X_FORWARDED_FOR | Request::HEADER_X_FORWARDED_HOST | Request::HEADER_X_FORWARDED_PORT | Request::HEADER_X_FORWARDED_PROTO);`
- `Request::setTrustedProxies(['1.2.3.4'], Request::HEADER_X_FORWARDED_TRAEFIK);`
- `framework.trusted_headers: [x-forwarded-for, x-forwarded-host, x-forwarded-port, x-forwarded-proto]`

Commits
-------

7cf4dd6917 Deprecate HEADER_X_FORWARDED_ALL constant
2020-11-04 08:16:55 +01:00
Nicolas Grekas
ff7ffdf22a bug #38977 [HttpClient] Check status code before decoding content in TraceableResponse (chalasr)
This PR was merged into the 5.1 branch.

Discussion
----------

[HttpClient] Check status code before decoding content in TraceableResponse

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

Using `toArray()` on the response of a traceable client, the status code is currently checked after json decoding, which leads to `JsonException` being thrown instead of `ClientException`.
It should be the opposite, as for non-traceable responses.

Commits
-------

e5595dae73 [HttpClient] Check status code before decoding content in TraceableResponse
2020-11-03 21:22:18 +01:00
Robin Chalas
e5595dae73 [HttpClient] Check status code before decoding content in TraceableResponse 2020-11-03 21:20:54 +01:00
Thomas Lallement
3dd385f319
Rename security.pt_PT.xlf to security.pt.xlf 2020-11-03 17:58:31 +01:00
Jeroen Noten
2ad1adda69 [Messenger] Improve formatting of thrown exception in show failed message command 2020-11-03 13:22:22 +01:00
Nicolas Grekas
1cfd3ab03a Merge branch '5.1' into 5.x
* 5.1:
  [PhpUnitBridge] fix replaying skipped tests
  Switch nightly run to 8.0snapshot
2020-11-03 12:59:38 +01:00
Nicolas Grekas
298422c844 Merge branch '4.4' into 5.1
* 4.4:
  [PhpUnitBridge] fix replaying skipped tests
  Switch nightly run to 8.0snapshot
2020-11-03 12:59:17 +01:00
Michael Voříšek
75ff86811f [HttpFoundation] Fix for virtualhosts based on URL path 2020-11-03 12:58:18 +01:00
Nicolas Grekas
703497dccf bug #38971 [PhpUnitBridge] fix replaying skipped tests (nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

[PhpUnitBridge] fix replaying skipped tests

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

Spotted while working on https://github.com/symfony/polyfill/pull/310

See also https://3v4l.org/D6Gro for the newly skipped tests in symfony/intl

Commits
-------

849d1b3845 [PhpUnitBridge] fix replaying skipped tests
2020-11-03 12:57:46 +01:00
Nicolas Grekas
849d1b3845 [PhpUnitBridge] fix replaying skipped tests 2020-11-03 12:50:26 +01:00
Jérémy Derussé
0dfbeb4e1e
minor #38842 [Notifier] Add unit tests for NullMessage, NullTransport and NullTransportFactory (jschaedl)
This PR was merged into the 5.2-dev branch.

Discussion
----------

[Notifier] Add unit tests for NullMessage, NullTransport and NullTransportFactory

| 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       | - <!-- 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 -->
<!--
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 5.x.
-->

Commits
-------

8a78dc2c97 [Notifier] Add unit tests for NullMessage, NullTransport and NullTransportFactory
2020-11-03 00:56:53 +01:00
Jan Schädlich
8a78dc2c97
[Notifier] Add unit tests for NullMessage, NullTransport and NullTransportFactory 2020-11-03 00:54:11 +01:00
Jérémy Derussé
7cf4dd6917
Deprecate HEADER_X_FORWARDED_ALL constant 2020-11-02 17:16:33 +01:00
Nicolas Grekas
6ddb93df1f Merge branch '5.1' into 5.x
* 5.1:
  [HttpKernel] fix merge
2020-11-02 17:09:19 +01:00
Nicolas Grekas
f0d9eeb257 Merge branch '4.4' into 5.1
* 4.4:
  [HttpKernel] fix merge
2020-11-02 17:09:08 +01:00
Nicolas Grekas
76c19393c8 [HttpKernel] fix merge 2020-11-02 17:06:19 +01:00
Nicolas Grekas
5bf6bbe96c Merge branch '5.1' into 5.x
* 5.1:
  [Process] Dont test TTY if there is no TTY support
  Fixing some Mongolian
  translating the validators for european portuguese language
  Fix CI
  Update validators.he.xlf
  Update security.he.xlf
  Update validators.he.xlf
  Improve performances in CircualReference detection
  [PHPUnitBridge] Fixed crash on Windows with PHP 8
  Fix session called initized several time
2020-11-02 16:47:15 +01:00
Nicolas Grekas
aae9211e7c Merge branch '4.4' into 5.1
* 4.4:
  [Process] Dont test TTY if there is no TTY support
  Fixing some Mongolian
  translating the validators for european portuguese language
  Fix CI
  Update validators.he.xlf
  Update security.he.xlf
  Update validators.he.xlf
  Improve performances in CircualReference detection
  [PHPUnitBridge] Fixed crash on Windows with PHP 8
  Fix session called initized several time
2020-11-02 16:45:32 +01:00
Nicolas Grekas
5831ab2b62 bug #38910 [HttpKernel] Fix session initialized several times (jderusse)
This PR was merged into the 4.4 branch.

Discussion
----------

[HttpKernel] Fix session initialized several times

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

The session injected in the request is a factory. When the request is **cloned** (ie sub-request) while the session is not yet used in the master request (the session is still a factory), both Master and Sub request will have a factory.
If both requests attempt to read the session afterward, they both triggers the factory, and both initialize the session.

It's not a dead end for the `SessionListener` because the session come from the container and is shared, but:
- the session is initialized ($storage->setOptions(['cookie_secure' => true])) twice
- if we replace the sesssion from container to a factory, it could be an issue

Commits
-------

30a3c7c87b Fix session called initized several time
2020-11-02 16:36:10 +01:00
Nicolas Grekas
8375eeef67 bug #38882 [DependencyInjection] Improve performances in CircualReference detection (jderusse)
This PR was merged into the 4.4 branch.

Discussion
----------

[DependencyInjection] Improve performances in CircualReference detection

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

This PR change the way circular references are detected.  And improve the project submitted in #37850 [by **86%**](https://blackfire.io/profiles/compare/cc4aa41d-5b63-4caa-9a1b-fc282dc5d64a/graph) (Build the container in 1.1 sec instead of 10)

Issue is: When a project contains a lot Circular Reference, the Dumper [spend a lot of time](https://blackfire.io/profiles/54f6eba2-b93c-4f2b-a268-1e58883faecb/graph) in merging those circular references.
note: a circular reference is not an issue when an service is not injected by constructor, but this Can not be known until all references are resolved (performed previously by connectCircularReferences)

This PR removed the connectCircularReferences and generate a flatten tree of dependencies:
 - the key is the service ID
 - the value is the list of direct **AND** indirect dependency + path to join the dependency

I also [benched the PR with a project with few references](https://blackfire.io/profiles/compare/2f9902e6-3347-40b3-8421-e1fd09c067d2/graph) and result are almost the same before/after.

Commits
-------

d4db75692b Improve performances in CircualReference detection
2020-11-02 16:10:49 +01:00
Nicolas Grekas
ed217a1435 bug #38950 [Process] Dont test TTY if there is no TTY support (Nyholm)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Process] Dont test TTY if there is no TTY support

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

Commits
-------

e918e5ab30 [Process] Dont test TTY if there is no TTY support
2020-11-02 16:10:23 +01:00
Nyholm
e918e5ab30 [Process] Dont test TTY if there is no TTY support 2020-11-02 16:10:16 +01:00
Nicolas Grekas
cd53800026 minor #38917 Fixing some Mongolian (Nyholm)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

Fixing some Mongolian

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

Hey @luffy1727, could you help me with the last two strings here?

Commits
-------

5c848d9796 Fixing some Mongolian
2020-11-02 16:02:38 +01:00
Nyholm
5c848d9796 Fixing some Mongolian 2020-11-02 16:02:29 +01:00
Bruno Araujo
c0524197a0 translating the validators for european portuguese language 2020-11-02 16:00:21 +01:00
Ben Hakim
b99977efce
Update validators.he.xlf 2020-11-02 16:11:24 +02:00
Alexander M. Turek
ba7c60b745 minor #38961 Update validators.he.xlf (ben29)
This PR was merged into the 4.4 branch.

Discussion
----------

Update validators.he.xlf

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

Commits
-------

98a7e8e150 Update validators.he.xlf
2020-11-02 15:00:41 +01:00
Ben Hakim
c8ab10f427
Update security.he.xlf 2020-11-02 15:41:03 +02:00
Ben Hakim
98a7e8e150
Update validators.he.xlf 2020-11-02 15:36:19 +02:00
Alexander M. Turek
12a617f2ea Merge branch '5.1' into 5.x 2020-11-02 09:16:52 +01:00
Alexander M. Turek
8d964bda5b Merge branch '4.4' into 5.1 2020-11-02 08:55:38 +01:00
Fabien Potencier
08da13391f minor #38932 [Validator] Merge RecursiveValidatorTest with its parents (derrabus)
This PR was merged into the 4.4 branch.

Discussion
----------

[Validator] Merge RecursiveValidatorTest with its parents

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

`RecursiveValidatorTest` as two abstract parent classes that to my understanding exist mainly for historic reasons: We used to have different validator implementations and those abstract classes contained some shared test cases. This is not the case anymore, which leaves `RecursiveValidatorTest` as the only child class of those two abstract classes.

This PR suggests to merge the three classes into one.

I've executed the test suite before and after the change and PHPUnit reported the same number of assertions and test cases.

I've also checked how the merge to 5.1 and 5.x would look like. The merge to 5.1 works without conflicts. From 5.1 to 5.x, two additional test cases have to be moved down and the reference to a few fixture classes needs to be adjusted.

Commits
-------

6822774d37 [Validator] Merge RecursiveValidatorTest with its parents.
2020-11-02 07:49:36 +01:00
Fabien Potencier
5c3781ae18 minor #38945 [Finder] Force set access time in test (Nyholm)
This PR was merged into the 4.4 branch.

Discussion
----------

[Finder] Force set access time in test

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no, it only updates the tests
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #38942
| License       | MIT
| Doc PR        |

OSX don't really update atime (access time). They claim it is because performance reasons. So this PR will update the test to make PHP force access time on a file.

The different runs of `testAccept` depends on each other because each test modifies the filesystem a bit. That is why I added the extra `sleep(1)`.

Commits
-------

c5ec51abdf [Finder] Force set access time in test
2020-11-02 07:48:36 +01:00
Fabien Potencier
20306a23bf minor #38911 Fix transiant tests in 4.4 (jderusse)
This PR was merged into the 4.4 branch.

Discussion
----------

Fix transiant tests in 4.4

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

I noticed this week 2 currencies of this failure. in both case the `METADATA_EXPIRY` were 1.5 sec under the expected value

Commits
-------

833029ca7e Fix transiant tests in 4.4
2020-11-02 07:46:39 +01:00
Alexander M. Turek
7c319be805 minor #38953 [Form] Add missing Azerbaijani translation (seferov)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Form] Add missing Azerbaijani translation

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Part of #38725 and #38710
| License       | MIT
| Doc PR        | N/A

Commits
-------

142cfeed55 [Form] Add missing Azerbaijani translation
2020-11-02 01:33:19 +01:00
Farhad Safarov
142cfeed55 [Form] Add missing Azerbaijani translation 2020-11-02 01:33:09 +01:00
Alexander M. Turek
8bc1c76308 minor #38952 [Security] Add missing Azerbaijani translation (seferov)
This PR was merged into the 4.4 branch.

Discussion
----------

[Security] Add missing Azerbaijani translation

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Part of #38725 and #38710
| License       | MIT
| Doc PR        | N/A

Commits
-------

665b25cd1e [Security] Add missing Azerbaijani translations
2020-11-02 01:32:18 +01:00
Alexander M. Turek
6576fea4bf minor #38951 [Validator] Add missing Azerbaijani translation (seferov)
This PR was merged into the 4.4 branch.

Discussion
----------

[Validator] Add missing Azerbaijani translation

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Part of #38725 and #38710
| License       | MIT
| Doc PR        | N/A

Commits
-------

317f17a2f3 [Validator] Add missing Azerbaijani translation
2020-11-02 01:31:27 +01:00
Alexander M. Turek
9dd2f6b5a7 Merge branch '5.1' into 5.x 2020-11-02 01:06:48 +01:00
Alexander M. Turek
8898c0f3b6 minor #38955 Missing translations for Catalan (ca) (rogerguasch)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

Missing translations for Catalan (ca)

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #38731
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- 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 5.x.
-->

Commits
-------

6efa4ed777 Missing translations for Catalan (ca)
2020-11-02 00:26:16 +01:00
Roger Guasch
6efa4ed777 Missing translations for Catalan (ca) 2020-11-02 00:26:09 +01:00
Alexander M. Turek
61f715fbbc minor #38924 fix: updating translation issues (hugovms)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

fix: updating translation issues

| Q             | A
| ------------- | ---
| Branch?       | 5.x for features / 4.4 or 5.1 for bug fixes <!-- see below -->
| Bug fix?      | yes/no
| New feature?  | yes/no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | yes/no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | Fix #... <!-- 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 -->
<!--
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 5.x.
-->

Commits
-------

b39ff818ca fix: updating translation issues
2020-11-02 00:24:41 +01:00
hugovms
b39ff818ca fix: updating translation issues 2020-11-02 00:24:32 +01:00
Jérémy Derussé
833029ca7e
Fix transiant tests in 4.4 2020-11-01 22:34:37 +01:00
Farhad Safarov
665b25cd1e [Security] Add missing Azerbaijani translations 2020-11-01 23:48:39 +03:00
Farhad Safarov
317f17a2f3 [Validator] Add missing Azerbaijani translation 2020-11-01 22:40:44 +03:00
Alexander M. Turek
e68da40f56 Merge branch '4.4' into 5.1 2020-11-01 20:20:14 +01:00
Nyholm
c5ec51abdf
[Finder] Force set access time in test 2020-11-01 20:04:13 +01:00
Nyholm
c377f73304 [Messenger] Fixed tests with doctrine 3 2020-11-01 20:02:47 +01:00
Alexander M. Turek
3a8570e569 Add symfony/translation to the dev dependencies of symfony/security. 2020-11-01 19:34:19 +01:00
Fabien Potencier
86e5c563f1 Merge branch '5.1' into 5.x
* 5.1:
  Validate XLIFF files in tests using the XSD
2020-11-01 18:42:32 +01:00
Fabien Potencier
7539597bbd Merge branch '4.4' into 5.1
* 4.4:
  Validate XLIFF files in tests using the XSD
2020-11-01 18:42:02 +01:00
Fabien Potencier
f5bd922e5b feature #38919 [Console] Make error message more verbose (Nyholm)
This PR was squashed before being merged into the 5.2-dev branch.

Discussion
----------

[Console] Make error message more verbose

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

This will make the error message a bit more verbose when you are using too many or too few arguments.

Commits
-------

ef221e88aa [Console] Make error message more verbose
2020-11-01 18:40:12 +01:00
Nyholm
ef221e88aa [Console] Make error message more verbose 2020-11-01 18:40:07 +01:00
Fabien Potencier
9947e14c11 minor #38939 Validate XLIFF files in tests using the XSD (wouterj)
This PR was merged into the 4.4 branch.

Discussion
----------

Validate XLIFF files in tests using the XSD

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

The current tests only validated that the Xliff files were valid XML. This improves it to also validate the Xliff files against the correct XSD. This will avoid issues like https://github.com/symfony/symfony/issues/38935 in the future.

cc @Nyholm

Commits
-------

17dfa1d5fc Validate XLIFF files in tests using the XSD
2020-11-01 18:35:28 +01:00
Alexander M. Turek
8bac7a0b5e Merge branch '5.1' into 5.x 2020-11-01 17:14:45 +01:00
Alexander M. Turek
fd4cdba551 Merge branch '4.4' into 5.1 2020-11-01 16:43:26 +01:00
Alexander M. Turek
7740bb31e4 minor #38927 Update security.da.xlf (AnneKir)
This PR was merged into the 4.4 branch.

Discussion
----------

Update security.da.xlf

Added case 17 and 18

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

Commits
-------

31d120d0ee Update security.da.xlf
2020-11-01 16:21:33 +01:00
Alexander M. Turek
407f014af0 minor #38928 Update validators.da.xlf (AnneKir)
This PR was merged into the 4.4 branch.

Discussion
----------

Update validators.da.xlf

Addded cases 95-99 in Danish

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  |no
| Deprecations? |no
| Tickets       | Fix #38736
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->

Commits
-------

e193c2b985 Update validators.da.xlf
2020-11-01 16:20:01 +01:00
Alexander M. Turek
8dd870c5b8 minor #38926 Update validators.da.xlf (AnneKir)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

Update validators.da.xlf

Added missing cases in danish.

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #38736
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->

Commits
-------

e24d675368 Update validators.da.xlf
2020-11-01 16:18:50 +01:00
AnneKir
e24d675368 Update validators.da.xlf 2020-11-01 16:18:42 +01:00
Wouter de Jong
17dfa1d5fc Validate XLIFF files in tests using the XSD 2020-11-01 16:18:25 +01:00
Nyholm
32edd7facf
Remove translations that does not exists in English 2020-11-01 11:47:20 +01:00
Fabien Potencier
33a8b96c7c minor #38931 Set constant visibility in tests to private where possible (derrabus)
This PR was merged into the 4.4 branch.

Discussion
----------

Set constant visibility in tests to private where possible

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

As discussed on Slack, this PR prepares the introduction of a CS fixer rule to enforce explicit visibility declarations for constants. I've checked class constants in test and fixture classes and if I only found usages within the same class, I've declared them `private`. This way, I also found a few constants that weren't used at all anymore, so I've removed those.

Commits
-------

43ce6dfe44 Set constant visibility in tests to private where possible.
2020-11-01 10:45:04 +01:00
Wojciech Kania
3980a482f6 Fix not well-formed validators.gl.xf 2020-11-01 10:31:07 +01:00
Alexander M. Turek
ed92008a5d Merge branch '5.1' into 5.x 2020-11-01 02:01:05 +01:00
Alexander M. Turek
052cdb19ab Merge branch '4.4' into 5.1 2020-11-01 01:24:56 +01:00
Alexander M. Turek
a4ed043567 minor #38907 [Form] Added missing Lithuanian translations (rmikalkenas)
This PR was merged into the 4.4 branch.

Discussion
----------

[Form] Added missing Lithuanian translations

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

Commits
-------

b1d868c35f [Form] Added missing Lithuanian translations
2020-11-01 01:22:24 +01:00
Alexander M. Turek
df5d950f48 minor #38908 [Security] Added missing Lithuanian translations (rmikalkenas)
This PR was merged into the 4.4 branch.

Discussion
----------

[Security] Added missing Lithuanian translations

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

Commits
-------

a9c4a06c3d [Security] Added missing Lithuanian translations
2020-11-01 01:21:11 +01:00
Alexander M. Turek
73eb5932b6 minor #38918 Add missing translations for Afrikaans (pierredup)
This PR was merged into the 4.4 branch.

Discussion
----------

Add missing translations for Afrikaans

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

Add missing translations for Afrikaans.

Commits
-------

48d0ed5886 Add missing translations for Afrikaans
2020-11-01 01:19:58 +01:00
Alexander M. Turek
6822774d37 [Validator] Merge RecursiveValidatorTest with its parents. 2020-11-01 00:28:13 +01:00
Alexander M. Turek
43ce6dfe44 Set constant visibility in tests to private where possible. 2020-10-31 23:44:29 +01:00
AnneKir
e193c2b985
Update validators.da.xlf
Addded cases 95-99 in Danish
2020-10-31 18:45:33 +01:00
AnneKir
31d120d0ee
Update security.da.xlf
Added case 17 and 18
2020-10-31 18:44:53 +01:00
Jérémy Derussé
d4db75692b
Improve performances in CircualReference detection 2020-10-31 17:09:50 +01:00
Pierre du Plessis
48d0ed5886
Add missing translations for Afrikaans 2020-10-31 12:10:29 +02:00
Jérémy Derussé
30a3c7c87b
Fix session called initized several time 2020-10-30 22:54:04 +01:00
Rokas Mikalkėnas
a9c4a06c3d [Security] Added missing Lithuanian translations 2020-10-30 22:13:53 +02:00
Rokas Mikalkėnas
b1d868c35f [Form] Added missing Lithuanian translations 2020-10-30 22:02:07 +02:00
Luis Tacon
703f156a9e Update Galician translations. 2020-10-30 20:13:58 +01:00
Alexander M. Turek
176f52d630 feature #38859 [HttpFoundation] Deprecate not passing a Closure together with FILTER_CALLBACK to ParameterBag::filter() (nicolas-grekas)
This PR was merged into the 5.2-dev branch.

Discussion
----------

[HttpFoundation] Deprecate not passing a `Closure` together with `FILTER_CALLBACK` to `ParameterBag::filter()`

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

Using `filter_var()` with a configurable flag is risky, because of the `FILTER_CALLBACK` flag.
Restricting the type of callable that is accepted here mitigates the risk.
We did the same in Twig: https://github.com/twigphp/Twig/pull/3308

Commits
-------

d6aea288e7 [HttpFoundation] Deprecate not passing a `Closure` together with `FILTER_CALLBACK` to `ParameterBag::filter()`
2020-10-30 18:01:43 +01:00
Alexander M. Turek
8ef1826bee minor #38902 Add Missing Serbian (Lat & Cyrl) & Bosnian translation (tambait)
This PR was merged into the 4.4 branch.

Discussion
----------

Add Missing Serbian (Lat & Cyrl) & Bosnian translation

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Tickets       | Fix #38760, fix #38761, fix #38728
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| License       | MIT

Commits
-------

29ac49741b Add Serbian (Lat & Cyrl) & Bosnian translations for Form Validator & Security
2020-10-30 17:57:30 +01:00
ivan
29ac49741b Add Serbian (Lat & Cyrl) & Bosnian translations for Form Validator & Security 2020-10-30 17:27:33 +01:00
Nicolas Grekas
d6aea288e7 [HttpFoundation] Deprecate not passing a Closure together with FILTER_CALLBACK to ParameterBag::filter() 2020-10-30 17:07:47 +01:00
Alexander M. Turek
6b1b12f40e Merge branch '5.1' into 5.x 2020-10-30 16:18:47 +01:00
Alexander M. Turek
41311a9b4a Merge branch '4.4' into 5.1 2020-10-30 16:09:42 +01:00
Massimiliano Arione
f33d16f0b9 remove reflection-docblock from mime requirements 2020-10-30 15:55:39 +01:00
Alexander M. Turek
b9ca866bdd Remove Symfony 3 compatibility code. 2020-10-30 15:21:36 +01:00
Alexander M. Turek
5cc4623aad minor #38897 Fixed translations for Norwegian (Nyholm)
This PR was merged into the 4.4 branch.

Discussion
----------

Fixed translations for Norwegian

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

This will fix Travis build on 4.4

Norwegian has two dialects. "old" or "written" (Bokmål) and "new" (Nynorsk). The "new" one is the one everybody* speaks. The locales for these languages are:
- Norwegian: no
- "old": nb
- "new": nn

It does not make sense, sure. However, Symfony have tests that make sure that `no` and `nb` are the same. This PR just copies the `no` translations to `nb`.

----------

\* By "everybody" I mean the younger half of the population, especially in Olso. I am generalising partly because Im ignorant and partly because I wish more people spoke Nynork because that is the dialect I understand.

Commits
-------

b28505abd5 Fixed translations for Norwegian
2020-10-30 15:19:12 +01:00
Nyholm
b28505abd5
Fixed translations for Norwegian 2020-10-30 15:01:38 +01:00
Alexander M. Turek
eb3770980d minor #38829 Missing translations for Greek (el) (pavlakis)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

Missing translations for Greek (el)

| 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       | Fix #38743. <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT
| Doc PR        | N/A
<!--
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 5.x.
-->

Commits
-------

02d5985a31 Missing translations for Greek (el)
2020-10-30 14:46:35 +01:00
Antonios Pavlakis
02d5985a31 Missing translations for Greek (el) 2020-10-30 14:46:25 +01:00
Alexander M. Turek
4fa4ecd9b2 minor #38878 Form, Security and Validator mn translation (luffy1727)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

Form, Security and Validator mn translation

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

Adding Form, Security and validator Mongolian[mn] translation

Commits
-------

656d7b8df5 Form, Security and Validator mn translation
2020-10-30 10:44:54 +01:00
luffy1727
656d7b8df5 Form, Security and Validator mn translation 2020-10-30 10:44:46 +01:00
Nicolas Grekas
13af58c57f [Cache] minor improvement in expiry handling 2020-10-29 11:44:04 +01:00
Nicolas Grekas
fdff819803 bug #38879 [Cache] Fixed expiry could be int in ChainAdapter due to race conditions (phamviet)
This PR was merged into the 4.4 branch.

Discussion
----------

[Cache] Fixed expiry could be int in ChainAdapter due to race conditions

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

This bug is hard to re-produce and seems only happen with ArrayAdapter only.

Steps to reproduce:

cache.yaml
```
simple.cache:
        adapters:
          - cache.adapter.array
          - cache.adapter.redis
```

```php
if (isset($item->metadata[CacheItem::METADATA_EXPIRY])) {
    $logger->debug($item->key, $item->metadata);
    $format = is_int($item->metadata[CacheItem::METADATA_EXPIRY]) ? 'U' : 'U.u';
    $item->expiresAt(\DateTime::createFromFormat($format, $item->metadata[CacheItem::METADATA_EXPIRY]));
 }
```

Refresh webpage multiple time to make web server busy and logs:
```
[2020-10-29T17:04:51.119653+07:00] application.DEBUG: item-key {"expiry":1603965892.118222,"ctime":4} []
[2020-10-29T17:04:54.322937+07:00] application.DEBUG: item-key {"expiry":1603965895.308393,"ctime":17} []
[2020-10-29T17:04:54.745923+07:00] application.DEBUG: item-key {"expiry":1603965895,"ctime":16} []
```

Commits
-------

268816f26c [Cache] Fixed expiry maybe int due too race conditions
2020-10-29 11:37:34 +01:00
Viet Pham
268816f26c [Cache] Fixed expiry maybe int due too race conditions 2020-10-29 11:37:09 +01:00
Alexander M. Turek
9aac4f444a Merge branch '5.1' into 5.x 2020-10-29 11:04:13 +01:00
Alexander M. Turek
487908a610 minor #38862 Complete the Language for Hungarian and Norwegian (masitings)
This PR was merged into the 4.4 branch.

Discussion
----------

Complete the Language for Hungarian and Norwegian

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

Hi there, i have complete the translation for this 2 language. Mostly i translate that using google translate and some of the language i define by my self.

Commits
-------

9e4859c87b Complete the Language for Hungarian and Norwegian
2020-10-29 10:59:37 +01:00
Mas Iting
9e4859c87b
Complete the Language for Hungarian and Norwegian 2020-10-29 10:58:36 +01:00
Alexander M. Turek
a29af81af4 Merge branch '4.4' into 5.1 2020-10-29 10:50:11 +01:00
Alexander M. Turek
1dfa4fa086 minor #38865 Add FI Form validation translations (gzumba)
This PR was merged into the 4.4 branch.

Discussion
----------

Add FI Form validation translations

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

Finnish translations for the Form validators.

Commits
-------

7608142ced Add FI Form validation translations
2020-10-29 10:40:37 +01:00
Fabien Potencier
12578c2699 minor #38866 [Console] Test degraded true colors (freezy-sk)
This PR was squashed before being merged into the 5.2-dev branch.

Discussion
----------

[Console] Test degraded true colors

| 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       | <!-- 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#14494 <!-- required for new features -->

Testing hidden feature of hex colors degraded to ANSI named colors for terminals without true color support.

Commits
-------

a26dc0931b [Console] Test degraded true colors
2020-10-29 08:35:47 +01:00
freezy
a26dc0931b [Console] Test degraded true colors 2020-10-29 08:35:40 +01:00
Alexander M. Turek
0b8e5066d4 Fix CS 2020-10-28 22:47:22 +01:00
Alexander M. Turek
0fee41a617 Merge branch '5.1' into 5.x 2020-10-28 22:46:03 +01:00
Alexander M. Turek
53f7f5f27e Fix CS 2020-10-28 22:33:29 +01:00
Alexander M. Turek
294cffea25 Merge branch '4.4' into 5.1 2020-10-28 22:31:18 +01:00
Alexander M. Turek
659decf594 Use short array deconstruction syntax. 2020-10-28 21:42:29 +01:00
Fabien Potencier
8941b93b2c minor #38821 [Form] Add missing slovak translations (miromichalicka)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Form] Add missing slovak translations

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

This PR adds missing Slovak Form translations

Commits
-------

52380eed38 [Form] Add missing slovak translations
2020-10-28 19:13:34 +01:00
Miro Michalicka
52380eed38 [Form] Add missing slovak translations 2020-10-28 19:13:24 +01:00
Fabien Potencier
6d13d84b49 minor #38868 Added Thai missing translations (ibotdotout)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

Added Thai missing translations

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

Added missing Thai translations based on 4.4 branch

CC. @Nyholm

Commits
-------

4f39516558 Added Thai missing translations
2020-10-28 19:09:07 +01:00
“teerasak”
4f39516558 Added Thai missing translations 2020-10-28 19:09:00 +01:00
Alexander M. Turek
587ed0d9bb minor #38857 Add missing translations for Tagalog (tl) (ocrampete16)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

Add missing translations for Tagalog (tl)

| 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 #38766 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT

This PR adds missing form, security and validator translations for Tagalog.

I also skimmed over the existing translations and corrected spelling mistakes I could find.

Commits
-------

c4461b760a Add missing translations for Tagalog (tl)
2020-10-28 16:29:47 +01:00
Marco Petersen
c4461b760a Add missing translations for Tagalog (tl) 2020-10-28 16:29:36 +01:00
zumba
0f13737cc1 Add new FI Validator translations 2020-10-28 15:43:09 +01:00
zumba
7608142ced Add FI Form validation translations 2020-10-28 16:05:29 +02:00
Nyholm
29e3964da6
Remove translation keys that does not exists in English 2020-10-28 11:52:59 +01:00
Fabien Potencier
bcb27b4426 [Cache] Add missing use statement 2020-10-28 08:18:22 +01:00
Fabien Potencier
d8aa04f9a2 Bump Symfony version to 5.2.0 2020-10-28 07:15:27 +01:00
Fabien Potencier
d034e0455d Update VERSION for 5.2.0-BETA3 2020-10-28 07:08:40 +01:00
Fabien Potencier
b1cb5b3008 Bump Symfony version to 5.1.9 2020-10-28 07:07:48 +01:00
Fabien Potencier
78654e8cbd Update VERSION for 5.1.8 2020-10-28 06:55:23 +01:00
Fabien Potencier
8b0146cb63 Bump Symfony version to 4.4.17 2020-10-28 06:54:40 +01:00
Fabien Potencier
1864a9c528 Update VERSION for 4.4.16 2020-10-28 06:50:56 +01:00
Fabien Potencier
4eb10eaa2c Bump Symfony version to 3.4.47 2020-10-28 06:49:13 +01:00
Fabien Potencier
e700242adf Update VERSION for 3.4.46 2020-10-28 06:40:17 +01:00
Fabien Potencier
9dac2086b0 Merge branch '5.1' into 5.x
* 5.1:
  Missing translations for Chinese (zh_TW) #38733
  Missing translations for Chinese (zh_CN) #38732
2020-10-28 06:25:52 +01:00
Fabien Potencier
32cfd4d530 Merge branch '4.4' into 5.1
* 4.4:
  Missing translations for Chinese (zh_TW) #38733
  Missing translations for Chinese (zh_CN) #38732
2020-10-28 06:25:38 +01:00
Fabien Potencier
ea1ce23a76 Merge branch '3.4' into 4.4
* 3.4:
  Missing translations for Chinese (zh_TW) #38733
  Missing translations for Chinese (zh_CN) #38732
2020-10-28 06:25:24 +01:00
Fabien Potencier
8c6b652c10 minor #38848 Missing translations for Chinese (zh_TW) #38733 (fd6130)
This PR was squashed before being merged into the 3.4 branch.

Discussion
----------

Missing translations for Chinese (zh_TW) #38733

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #38733
| License       | MIT

Added missing translations for zh_TW in Form, Security, Validator.

Commits
-------

3e741fda0a Missing translations for Chinese (zh_TW) #38733
2020-10-28 06:23:51 +01:00
fd6130
3e741fda0a Missing translations for Chinese (zh_TW) #38733 2020-10-28 06:23:45 +01:00
Fabien Potencier
48cbe31d4e minor #38847 Missing translations for Chinese (zh_CN) #38732 (fd6130)
This PR was squashed before being merged into the 3.4 branch.

Discussion
----------

Missing translations for Chinese (zh_CN) #38732

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #38732
| License       | MIT

Added missing translations for zh_CN in Form, Security, Validator.

Commits
-------

952df248d0 Missing translations for Chinese (zh_CN) #38732
2020-10-28 06:23:15 +01:00
fd6130
952df248d0 Missing translations for Chinese (zh_CN) #38732 2020-10-28 06:23:05 +01:00
Jérémy Derussé
f1f44d48e0
Do not call getQueueUrl when the url is known 2020-10-28 00:31:15 +01:00
Robin Chalas
268b5b746c bug #38845 [Console] Register signal handling only for commands implemeting SignalableCommandInterface (lyrixx)
This PR was merged into the 5.x branch.

Discussion
----------

[Console] Register signal handling only for commands implemeting SignalableCommandInterface

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

---

Actually, it does not make sens to listen all signals for all commands.

This commit also add more tests for this part of code.

Commits
-------

37b1faec8c [Console] Register signal handling only for commands implemeting SignalableCommandInterface
2020-10-27 18:00:50 +01:00
Jérémy Derussé
7bb288e956
Fix transient tests 2020-10-27 16:54:49 +01:00
Grégoire Pineau
37b1faec8c [Console] Register signal handling only for commands implemeting SignalableCommandInterface
Actually, it does not make sens to listen all signals for all commands.

This commit also add more test for this part of code.
2020-10-27 16:37:34 +01:00
Nicolas Grekas
982bf9487e Merge branch '5.1' into 5.x
* 5.1:
  Fix CI for 3.4
  [Form] Some minor teaks for Swedish
  Fix CI
  Fix CI
  minor #38838 [ProxyManager] use "composer/package-versions-deprecated" instead of "ocramius/package-versions" (nicolas-grekas)
2020-10-27 15:19:03 +01:00
Nicolas Grekas
f7390bb073 Merge branch '4.4' into 5.1
* 4.4:
  Fix CI for 3.4
  [Form] Some minor teaks for Swedish
  Fix CI
  Fix CI
  minor #38838 [ProxyManager] use "composer/package-versions-deprecated" instead of "ocramius/package-versions" (nicolas-grekas)
2020-10-27 15:18:55 +01:00
Nicolas Grekas
dcb57f8505 Merge branch '3.4' into 4.4
* 3.4:
  Fix CI for 3.4
  [Form] Some minor teaks for Swedish
  Fix CI
  minor #38838 [ProxyManager] use "composer/package-versions-deprecated" instead of "ocramius/package-versions" (nicolas-grekas)
2020-10-27 15:18:35 +01:00
Nyholm
7af4fe989a
[Form] Some minor teaks for Swedish 2020-10-27 15:11:24 +01:00
Nicolas Grekas
824bc44a74 bug #38751 [Security] Move AbstractListener abstract methods to the new FirewallListenerInterface (chalasr)
This PR was merged into the 5.x branch.

Discussion
----------

[Security] Move AbstractListener abstract methods to the new FirewallListenerInterface

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

We added a FirewallListenerInterface in 5.2, let's make it complete to allow for cleaner firewall listener implementations.

Commits
-------

5dd70bd62e [Security] Move AbstractListener abstract methods to the new FirewallListenerInterface
2020-10-27 11:43:30 +01:00
Nicolas Grekas
27341b5e60 minor #38819 [HttpKernel] HttpKernelBrowser: don't set a default Accept header (dunglas)
This PR was squashed before being merged into the 5.x branch.

Discussion
----------

[HttpKernel] HttpKernelBrowser: don't set a default Accept header

| Q             | A
| ------------- | ---
| Branch?       | 3.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       | Fix #33393
| License       | MIT
| Doc PR        | n/a

Currently, the `Accept` HTTP header is set automatically, because there is a default value for this value in HttpFoundation's `Request::create()` method.
This PR remove the default value if it hasn't been set automatically.

This will fix API Platform's `ApiTestCase` and `Behatch/contexts` (the previous workarounds aren't applicable anymore because we added type checks in Symfony).

Commits
-------

bf13887898 [HttpKernel] HttpKernelBrowser: don't set a default Accept header
2020-10-27 11:15:18 +01:00
Kévin Dunglas
bf13887898 [HttpKernel] HttpKernelBrowser: don't set a default Accept header 2020-10-27 11:15:10 +01:00
Nicolas Grekas
d5118933ed Merge branch '5.1' into 5.x
* 5.1:
  [DI] Fix Preloader exception when preloading a class with an unknown parent/interface
  [Translation] added missing Albanian translations
  [Form, Security, Validator] Add missing Turkish translations (tr)
  Display php info for extra versions in travis
  [ProxyManager] use "composer/package-versions-deprecated" instead of "ocramius/package-versions"
  38737 add missing dutch translation
  Fix transient tests
  [Validator] Add missing Slovak translations.
  [Form, Security, Validator] Add missing Persian translations (fa_IR)
  [Form] Fix wrong translations for Ukrainian (uk)
  [Validator] Add missing translations for Ukrainian (uk)
  [Security] Add missing translations for Ukrainian (uk)
  [Form] Add missing translations for Ukrainian (uk)
  [Security] Add missing Slovak translations.
  [Form] Added missing Spanish translations.
  Fix transient tests
2020-10-27 11:14:44 +01:00
Nicolas Grekas
8810d2da62 Merge branch '4.4' into 5.1
* 4.4:
  [DI] Fix Preloader exception when preloading a class with an unknown parent/interface
  [Translation] added missing Albanian translations
  [Form, Security, Validator] Add missing Turkish translations (tr)
  Display php info for extra versions in travis
  [ProxyManager] use "composer/package-versions-deprecated" instead of "ocramius/package-versions"
  38737 add missing dutch translation
  Fix transient tests
  [Validator] Add missing Slovak translations.
  [Form, Security, Validator] Add missing Persian translations (fa_IR)
  [Form] Fix wrong translations for Ukrainian (uk)
  [Validator] Add missing translations for Ukrainian (uk)
  [Security] Add missing translations for Ukrainian (uk)
  [Form] Add missing translations for Ukrainian (uk)
  [Security] Add missing Slovak translations.
  [Form] Added missing Spanish translations.
  Fix transient tests
2020-10-27 11:11:13 +01:00