Commit Graph

31169 Commits

Author SHA1 Message Date
Robin Chalas
3ca9406cdb minor #38783 [Security] Added missing Spanish translations (TavoNiievez)
This PR was merged into the 3.4 branch.

Discussion
----------

[Security] Added missing Spanish translations

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

Commits
-------

8b307e644a [Security] Added missing Spanish translations.
2020-10-25 23:21:13 +01:00
Robin Chalas
9376e8778d [Security] Remove dead references to AnonymousAuthenticator 2020-10-25 23:13:28 +01:00
Alexander M. Turek
8a81c30860 minor #38796 Added missing translations for Russian (mamontovdmitriy)
This PR was squashed before being merged into the 3.4 branch.

Discussion
----------

Added missing translations for Russian

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

Hello!
I added missing translations for Russian.

Commits
-------

6a9e274a10 Added missing translations for Russian
2020-10-25 22:55:11 +01:00
Dmitriy Mamontov
6a9e274a10 Added missing translations for Russian 2020-10-25 22:55:04 +01:00
Alexander M. Turek
dc9422404d minor #38795 [Form] [Security] Add missing pt_BR translations (adielcristo)
This PR was squashed before being merged into the 3.4 branch.

Discussion
----------

[Form] [Security] Add missing pt_BR translations

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

Commits
-------

fd05fc6afb [Form] [Security] Add missing pt_BR translations
2020-10-25 22:53:31 +01:00
Adiel Cristo
fd05fc6afb [Form] [Security] Add missing pt_BR translations 2020-10-25 22:53:24 +01:00
Robin Chalas
5dd70bd62e [Security] Move AbstractListener abstract methods to the new FirewallListenerInterface 2020-10-25 22:41:40 +01:00
Jérémy Derussé
987efdd620
Fix transient tests 2020-10-25 21:41:30 +01:00
Alexander M. Turek
7ae1cc9e7a minor #38787 [Cache] Fix transient tests (jderusse)
This PR was merged into the 4.4 branch.

Discussion
----------

[Cache] Fix transient tests

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

Fix transient tests in cache like this one https://github.com/symfony/symfony/runs/1302566714?check_suite_focus=true

Commits
-------

b452e18ebc Fix transient tests
2020-10-25 20:32:35 +01:00
Andrew M-Y
4924b38d3a [Validator] Add missing Latvian translations 2020-10-25 20:29:48 +01:00
Alexander M. Turek
ead4084942 minor #38790 [Form] Add missing Latvian translations (andrewmy)
This PR was squashed before being merged into the 3.4 branch.

Discussion
----------

[Form] Add missing Latvian translations

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Part of #34710, #34749
| License       | MIT
| Doc PR        | N/A

Commits
-------

871c983164 [Form] Add missing Latvian translations
2020-10-25 20:27:01 +01:00
Andrew M-Y
871c983164 [Form] Add missing Latvian translations 2020-10-25 20:26:47 +01:00
Jérémy Derussé
b452e18ebc
Fix transient tests 2020-10-25 20:26:37 +01:00
Alexander M. Turek
f015d0a498 minor #38791 [Security] Add missing Latvian translations (andrewmy)
This PR was merged into the 3.4 branch.

Discussion
----------

[Security] Add missing Latvian translations

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Part of #34710, #34749
| License       | MIT
| Doc PR        | N/A

Commits
-------

7f2b13bcb3 [Security] Add missing Latvian translations
2020-10-25 20:24:37 +01:00
Andrew M-Y
7f2b13bcb3 [Security] Add missing Latvian translations 2020-10-25 21:00:32 +02:00
Alexander M. Turek
eb8d90974b Merge branch '5.1' into 5.x 2020-10-25 19:59:20 +01:00
Alexander M. Turek
e9dad88c01 Merge branch '4.4' into 5.1 2020-10-25 19:57:53 +01:00
Alexander M. Turek
2e5b6bf8cd Merge branch '3.4' into 4.4 2020-10-25 19:55:53 +01:00
Alexander M. Turek
fbc99973f8 minor #38786 Add missing vietnamese translations (jschaedl)
This PR was squashed before being merged into the 3.4 branch.

Discussion
----------

Add missing vietnamese translations

| 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       | Fix #38770  <!-- 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
-------

6289b271aa Add missing vietnamese translations
2020-10-25 19:50:42 +01:00
Jan Schädlich
6289b271aa Add missing vietnamese translations 2020-10-25 19:50:32 +01:00
Nyholm
ac0e25e885 [Cache] Fixed tests.. again 2020-10-25 19:42:52 +01:00
Alexander M. Turek
a7a3f228d7 minor #38782 [Validator] Add missing Czech translations (Lukáš Holeczy)
This PR was merged into the 3.4 branch.

Discussion
----------

[Validator] Add missing Czech translations

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

This PR adds missing Czech validator translations.

Commits
-------

eaff84418f [Validator] Add missing czech translations
2020-10-25 19:27:51 +01:00
Alexander M. Turek
7933e161c8 minor #38780 [Form] Add missing Czech translations (Lukáš Holeczy)
This PR was merged into the 3.4 branch.

Discussion
----------

[Form] Add missing Czech translations

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

This PR adds missing Czech form translations.

Commits
-------

05be7b2f1c [Form] Add missing czech translations
2020-10-25 19:13:13 +01:00
Alexander M. Turek
640a5780bb minor #38779 [Security] Add missing czech translations (Lukáš Holeczy)
This PR was merged into the 3.4 branch.

Discussion
----------

[Security] Add missing czech translations

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

This PR adds missing Czech security translations.

Commits
-------

01cb45462c [Security] Add missing czech translations
2020-10-25 19:10:29 +01:00
Alexander M. Turek
46c3af8325 minor #38778 [Security] Missing Bulgarian translations (kbosilkov)
This PR was merged into the 3.4 branch.

Discussion
----------

[Security] Missing Bulgarian translations

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

Commits
-------

fd7060d21a [Security] Missing Bulgarian translations #38730
2020-10-25 19:09:08 +01:00
Alexander M. Turek
b1d2444b8a minor #38776 [Form] Missing Bulgarian translations (kbosilkov)
This PR was squashed before being merged into the 3.4 branch.

Discussion
----------

[Form] Missing Bulgarian translations

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

Commits
-------

8c5d26fcb2 [Form] Missing Bulgarian translations
2020-10-25 19:07:00 +01:00
Krasimir Bosilkov
8c5d26fcb2 [Form] Missing Bulgarian translations 2020-10-25 19:06:52 +01:00
Alexander M. Turek
0345094426 minor #38775 [Validator] Missing Bulgarian translations (kbosilkov)
This PR was merged into the 3.4 branch.

Discussion
----------

[Validator] Missing Bulgarian translations

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

Commits
-------

a9d6549ce9 [Validator] Missing Bulgarian translations #38730
2020-10-25 19:03:50 +01:00
Alexander M. Turek
62a913a788 minor #38773 Closes #38747: Add italian translations. (Aerendir)
This PR was merged into the 3.4 branch.

Discussion
----------

Closes #38747: Add italian translations.

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

Commits
-------

7d25a46b3b Closes #38747: Add italian translations.
2020-10-25 19:01:42 +01:00
Alexander M. Turek
c44b15160c minor #38721 Update Arabic Form Translations (zairigimad)
This PR was squashed before being merged into the 3.4 branch.

Discussion
----------

Update Arabic Form Translations

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| 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 -->

This is related to https://github.com/symfony/symfony/issues/38723

Commits
-------

b36068ff8a Update Arabic Form Translations
2020-10-25 18:57:04 +01:00
Zairig Imad
b36068ff8a Update Arabic Form Translations 2020-10-25 18:56:55 +01:00
Alexander M. Turek
772ba805d3 minor #38718 Update Security Arabic Translations (zairigimad)
This PR was squashed before being merged into the 3.4 branch.

Discussion
----------

Update Security Arabic Translations

| Q             | A
| ------------- | ---
| Branch?       | 5.x for features / 3.4, 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 #... <!-- 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 -->

Related to https://github.com/symfony/symfony/issues/38723

Commits
-------

e6219e4796 Update Security Arabic Translations
2020-10-25 18:48:53 +01:00
Zairig Imad
e6219e4796 Update Security Arabic Translations 2020-10-25 18:48:45 +01:00
tarlepp
65db8d08c8 Added missing security.fi.xlf translation file 2020-10-25 18:36:27 +01:00
Tavo Nieves J
26f3963bb2 [Validator] Added missing Spanish translations. 2020-10-25 12:27:57 -05:00
Tavo Nieves J
8b307e644a [Security] Added missing Spanish translations. 2020-10-25 12:09:02 -05:00
Lukáš Holeczy
eaff84418f [Validator] Add missing czech translations 2020-10-25 17:56:47 +01:00
Lukáš Holeczy
05be7b2f1c [Form] Add missing czech translations 2020-10-25 17:54:38 +01:00
Lukáš Holeczy
01cb45462c [Security] Add missing czech translations 2020-10-25 17:46:46 +01:00
Krasimir Bosilkov
fd7060d21a
[Security] Missing Bulgarian translations #38730 2020-10-25 18:45:33 +02:00
Krasimir Bosilkov
a9d6549ce9
[Validator] Missing Bulgarian translations #38730 2020-10-25 18:37:37 +02:00
Aerendir
7d25a46b3b Closes #38747: Add italian translations. 2020-10-25 16:26:49 +01:00
Zairig Imad
85adad52c4 Update Security Frensh Translations 2020-10-25 14:06:13 +01:00
Fabien Potencier
fa2d8eff02 minor #38716 [Security] Added missing German translations (derrabus)
This PR was merged into the 3.4 branch.

Discussion
----------

[Security] Added missing German translations

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

Commits
-------

54140d45fb [Security] Added missing German translations.
2020-10-25 13:58:40 +01:00
Alexander M. Turek
eb6167cc0b Merge branch '5.1' into 5.x 2020-10-25 13:48:34 +01:00
Alexander M. Turek
f028d9ec9d Merge branch '4.4' into 5.1 2020-10-25 13:47:59 +01:00
Alexander M. Turek
86211dee65 Merge branch '3.4' into 4.4 2020-10-25 13:47:18 +01:00
Alexander M. Turek
00023a6ab8 [Form] Added missing German translations. 2020-10-25 13:34:19 +01:00
Alexander M. Turek
54140d45fb [Security] Added missing German translations. 2020-10-25 13:09:32 +01:00
Fabien Potencier
e74d87c875 minor #38715 [Security] Synchronized translations with 5.x (derrabus)
This PR was merged into the 3.4 branch.

Discussion
----------

[Security] Synchronized translations with 5.x

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

Commits
-------

3d7863f5b5 [Security] Synchronized translations with 5.x.
2020-10-25 12:49:41 +01:00
Alexander M. Turek
3d7863f5b5 [Security] Synchronized translations with 5.x. 2020-10-25 12:33:47 +01:00
Fabien Potencier
a1fa430b6a minor #38714 [Form] Added missing German translations (derrabus)
This PR was merged into the 5.2-dev branch.

Discussion
----------

[Form] Added missing German translations

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

Commits
-------

37a2ff4563 [Form] Added missing German translations.
2020-10-25 12:31:08 +01:00
Alexander M. Turek
37a2ff4563 [Form] Added missing German translations. 2020-10-25 12:18:37 +01:00
Marcin Michalski
ec3b0edc1f [Form] Add missing polish translations 2020-10-25 12:03:58 +01:00
Marcin Michalski
23fa42267e [Security] Add missing polish translations 2020-10-25 11:48:26 +01:00
Fabien Potencier
fc5e6b1903 Merge branch '5.1' into 5.x
* 5.1:
  [Cache] Fixed broken test
2020-10-25 09:36:38 +01:00
Fabien Potencier
e80549bf1a Merge branch '4.4' into 5.1
* 4.4:
  [Cache] Fixed broken test
2020-10-25 09:36:24 +01:00
Fabien Potencier
fc615e9845 feature #38664 [RateLimiter] Moved classes implementing LimiterInterface to a new namespace (Nyholm)
This PR was squashed before being merged into the 5.2-dev branch.

Discussion
----------

[RateLimiter] Moved classes implementing LimiterInterface to a new namespace

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

Before we release the RateLimit component.
I think it would be a good idea to put the 7 classes that belongs to a specific strategy in their own "Policy" namespace. It is very likely that it will be more strategies in the future and the `Symfony\Component\RateLimiter` namespace is crowed as it is.

I decided not to put the `CompoundLimiter` in this namespace as it is not a strategy.

Commits
-------

1e6cea56e4 [RateLimiter] Moved classes implementing LimiterInterface to a new namespace
2020-10-25 09:35:39 +01:00
Nyholm
1e6cea56e4 [RateLimiter] Moved classes implementing LimiterInterface to a new namespace 2020-10-25 09:35:33 +01:00
Nyholm
e17797c8e4
[Cache] Fixed broken test 2020-10-24 23:50:04 +02:00
Nicolas Grekas
605a5674a8 Merge branch '5.1' into 5.x
* 5.1:
  fix merge
  fix merge
  Remove branch-version (keep them for contracts only)
  [HttpClient] relax auth bearer format requirements
  [PHPUnitBridge] Silence errors from mkdir()
  [DependencyInjection] Preload classes with union types correctly.
  [Serializer] fix decoding float XML attributes starting with 0
  add missing dutch translations
  [TwigBridge] Remove "transchoice" from the code base
  Support PHPUnit 8 and PHPUnit 9 in constraint compatibility trait
  Add expectDeprecation, expectNotice, expectWarning, and expectError to TestCase polyfill
  [String] fix before/after[Last]() returning the empty string instead of the original one on non-match
  Add missing exporter function for PHPUnit 7
  [Validator] Add missing romanian translations
  [String] fix slicing in UnicodeString
  [Cache] Use correct expiry in ChainAdapter
  do not translate null placeholders or titles
2020-10-24 14:08:07 +02:00
Nicolas Grekas
60e969e01e fix merge 2020-10-24 14:03:25 +02:00
Nicolas Grekas
65f2620bc4 Merge branch '4.4' into 5.1
* 4.4:
  fix merge
  Remove branch-version (keep them for contracts only)
  [HttpClient] relax auth bearer format requirements
  [PHPUnitBridge] Silence errors from mkdir()
  [DependencyInjection] Preload classes with union types correctly.
  [Serializer] fix decoding float XML attributes starting with 0
  add missing dutch translations
  Support PHPUnit 8 and PHPUnit 9 in constraint compatibility trait
  Add expectDeprecation, expectNotice, expectWarning, and expectError to TestCase polyfill
  Add missing exporter function for PHPUnit 7
  [Validator] Add missing romanian translations
  [Cache] Use correct expiry in ChainAdapter
  do not translate null placeholders or titles
2020-10-24 14:01:57 +02:00
Nicolas Grekas
77aa17401d Merge branch '3.4' into 4.4
* 3.4:
  Remove branch-version (keep them for contracts only)
  [Serializer] fix decoding float XML attributes starting with 0
  add missing dutch translations
  [Validator] Add missing romanian translations
  do not translate null placeholders or titles
2020-10-24 13:50:19 +02:00
Nicolas Grekas
f8fe4bf9f5 Remove branch-version (keep them for contracts only) 2020-10-24 12:57:07 +02:00
Nicolas Grekas
4abbb1d6a9 bug #38647 [HttpClient] relax auth bearer format requirements (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[HttpClient] relax auth bearer format requirements

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

Commits
-------

ac20594267 [HttpClient] relax auth bearer format requirements
2020-10-24 11:44:37 +02:00
Christian Flothmann
ac20594267 [HttpClient] relax auth bearer format requirements 2020-10-24 11:44:22 +02:00
Nicolas Grekas
f517cf1174 minor #38703 [HttpClient] Adding missing dependency for dev (Nyholm)
This PR was merged into the 5.x branch.

Discussion
----------

[HttpClient] Adding missing dependency for dev

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

This will make sure Travis is happy again.

Commits
-------

552e704d6c [HttpClient] Adding missing dependency for dev
2020-10-24 11:30:32 +02:00
Nyholm
552e704d6c
[HttpClient] Adding missing dependency for dev 2020-10-24 10:12:34 +02:00
Robin Chalas
1c81aa72a6 bug #38675 [RateLimiter] Rename RateLimiter to RateLimiterFactory (Nyholm)
This PR was squashed before being merged into the 5.x branch.

Discussion
----------

[RateLimiter] Rename RateLimiter to RateLimiterFactory

| Q             | A
| ------------- | ---
| Branch?       | 5.x
| Bug fix?      | no
| New feature?  | no
| Deprecations? | No, not released yet
| Tickets       |
| License       | MIT
| Doc PR        | should be added

Sorry for making a few BC breaks.

@wouterj [said](https://github.com/symfony/symfony/pull/38562#issue-503193238) that this class was suggested to be named `LimiterFactory` before. But that was rejected.

Just my looking at the names of the classes we currently have:
- Rate
- RateLimit
- RateLimiter

I find it hard to know what these are doing and the difference between them. Note that none of them are used as a rate limiter (ie implements `LimiterInterface`)

I would like to be clear that a `RateLimiterFactory` is used to create an object implementing `LimiterInterface`.

Commits
-------

8be261b300 [RateLimiter] Rename RateLimiter to RateLimiterFactory
2020-10-24 10:11:08 +02:00
Nyholm
8be261b300 [RateLimiter] Rename RateLimiter to RateLimiterFactory 2020-10-24 10:10:52 +02:00
Alexander M. Turek
a7b0f16a56 [DependencyInjection] Preload classes with union types correctly. 2020-10-23 19:57:28 +02:00
Jan Schädlich
c6b32cdbd2 add missing upgrade entries and fixed changelog 2020-10-23 15:33:06 +02:00
Jérémy Derussé
e6f6b4cb4c
Add Stopwatch on TraceableClient 2020-10-23 12:06:36 +02:00
Fabien Potencier
85e8de6137 bug #38669 [Serializer] fix decoding float XML attributes starting with 0 (Marcin Kruk)
This PR was squashed before being merged into the 3.4 branch.

Discussion
----------

[Serializer] fix decoding float XML attributes starting with 0

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

This is a naive approach to fix #38666, assuming it is something worth fixing.

I checked different cases and it seems to be fixing all of them, but I bet there will be some other edge cases which still won't be covered properly.

Commits
-------

97b4306c30 [Serializer] fix decoding float XML attributes starting with 0
2020-10-23 06:26:46 +02:00
Marcin Kruk
97b4306c30 [Serializer] fix decoding float XML attributes starting with 0 2020-10-23 06:26:38 +02:00
Jos Elstgeest
02a8ca39f4 add missing dutch translations 2020-10-22 22:50:11 +02:00
Nyholm
76c22fab02
bug #38661 [RateLimiter] Fix delete method of the cache storage (GregOriol, Nyholm)
This PR was merged into the 5.x branch.

Discussion
----------

[RateLimiter] Fix delete method of the cache storage

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

This PR fixes a small issue with RateLimiter's cache storage and the delete method: all getItems are called with a sha1 of the id, but not the one for delete, which makes it miss the deletion.

Commits
-------

b61d9d1ea3 minor
88c1e2439e Added a test
fb540bba73 Fix delete method on RateLimiter's cache storage
2020-10-22 19:09:06 +02:00
Nyholm
310926fa88
bug #38678 [String] fix before/after[Last]() returning the empty string instead of the original one on non-match (nicolas-grekas)
This PR was merged into the 5.1 branch.

Discussion
----------

[String] fix before/after[Last]() returning the empty string instead of the original one on non-match

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

The current behavior is the least useful one. Returning the original string when no match is found is the most sensible behavior. It saves code instead of requiring more.

Typical example is when removing a potential suffix:
`$bar = $foo->beforeLast(['.svg', '.png']);` should remove any of these extensions if found, and return the original string otherwise.

Commits
-------

22a2740888 [String] fix before/after[Last]() returning the empty string instead of the original one on non-match
2020-10-22 19:01:40 +02:00
Nyholm
6f0a8971fd
bug #38682 [HttpClient] never trace content of event-stream responses (nicolas-grekas)
This PR was merged into the 5.x branch.

Discussion
----------

[HttpClient] never trace content of event-stream responses

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

Let's leverage #38587 in `EventSourceHttpClient`

Commits
-------

e4c0262dc1 [HttpClient] never trace content of event-stream responses
2020-10-22 18:54:44 +02:00
Nicolas Grekas
e4c0262dc1 [HttpClient] never trace content of event-stream responses 2020-10-22 15:42:02 +02:00
Nicolas Grekas
22a2740888 [String] fix before/after[Last]() returning the empty string instead of the original one on non-match 2020-10-22 14:08:44 +02:00
Nyholm
b61d9d1ea3
minor 2020-10-22 12:14:59 +02:00
Nyholm
88c1e2439e
Added a test 2020-10-22 12:12:23 +02:00
Nyholm
067153f452
Make sure we actually can use sliding_window and no_limit 2020-10-22 11:54:30 +02:00
Greg ORIOL
fb540bba73
Fix delete method on RateLimiter's cache storage 2020-10-22 11:48:25 +02:00
Robin Chalas
753932527e bug #38670 [RateLimiter] Be more type safe when fetching from cache (Nyholm)
This PR was merged into the 5.x branch.

Discussion
----------

[RateLimiter] Be more type safe when fetching from cache

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

This is a super minor thing. A `$cacheItem` can be a hit, but it does not contain a `LimiterStateInterface`.

Also, PSR-6 specifies that if the `$cacheItem` is not a hit, it must return null.

Commits
-------

4795756cc7 [RateLimiter] Be more type safe when fetching form cache
2020-10-22 10:40:20 +02:00
Robin Chalas
58f4e9dfc8 bug #38665 [RateLimiter] Allow configuration value "no_limit" (Nyholm)
This PR was squashed before being merged into the 5.x branch.

Discussion
----------

[RateLimiter] Allow configuration value "no_limit"

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

I dont see any reason why we should allow people to configure "no_limit". I assume this was just forgotten.

Commits
-------

2b9058d6b6 [RateLimiter] Allow configuration value "no_limit"
2020-10-22 10:35:38 +02:00
Nyholm
2b9058d6b6 [RateLimiter] Allow configuration value "no_limit" 2020-10-22 10:35:15 +02:00
Robin Chalas
6bb46dedca minor #38668 [RateLimiter] Remove Window::sleep() (Nyholm)
This PR was merged into the 5.x branch.

Discussion
----------

[RateLimiter] Remove Window::sleep()

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

This function is not needed since #38562

Commits
-------

ccbf7d5a06 [RateLimiter] Remove Window::sleep()
2020-10-22 10:31:04 +02:00
Nyholm
5dfafd334e [RateLimiter] Adding annotations 2020-10-22 10:25:47 +02:00
Marcin Michalski
ced43e1ec2 [Validator] Add missing romanian translations 2020-10-22 08:30:04 +02:00
Nyholm
4795756cc7
[RateLimiter] Be more type safe when fetching form cache 2020-10-21 23:51:48 +02:00
Nyholm
ccbf7d5a06
[RateLimiter] Remove Window::sleep() 2020-10-21 23:43:19 +02:00
Nicolas Grekas
d31ac74c03 [String] fix slicing in UnicodeString 2020-10-21 15:57:40 +02:00
Fabien Potencier
508ec9c33a bug #38633 [HttpClient] Fix decorating progress info in AsyncResponse (jderusse)
This PR was squashed before being merged into the 5.x branch.

Discussion
----------

[HttpClient] Fix decorating progress info in AsyncResponse

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

This PR reverts #38413, and send AsyncContext to onProgress callback.

Commits
-------

e325f51fe2 [HttpClient] Fix decorating progress info in AsyncResponse
2020-10-21 15:24:34 +02:00
Jérémy Derussé
e325f51fe2 [HttpClient] Fix decorating progress info in AsyncResponse 2020-10-21 15:24:25 +02:00
Fabien Potencier
b8012094d5 feature #38543 [HttpKernel] add kernel.runtime_environment = %env(default:kernel.environment:APP_RUNTIME_ENV)% parameter (nicolas-grekas)
This PR was merged into the 5.x branch.

Discussion
----------

[HttpKernel] add `kernel.runtime_environment` = `%env(default:kernel.environment:APP_RUNTIME_ENV)%` parameter

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

Instead of #37584

This PR adds a new `kernel.runtime_environment` parameter, which creates a convention to use the `APP_RUNTIME_ENV` env var to define the name of the runtime environment where the app is deployed.

When this env var is not set, the parameter defaults to `kernel.environment`.

This is especially useful for defining the location of the vault for secrets: an app can be deployed in "prod" mode, but still not be deployed on the real prod deployment target. When this happens, one might not use real prod secrets but instead, use a vault with creds for staging.

This parameter enables this use case.

Commits
-------

6eb9d62bdd [HttpKernel] add `kernel.runtime_environment` = `%env(default:kernel.environment:APP_RUNTIME_ENV)%` parameter
2020-10-21 15:20:19 +02:00
Nicolas Grekas
6eb9d62bdd [HttpKernel] add kernel.runtime_environment = %env(default:kernel.environment:APP_RUNTIME_ENV)% parameter 2020-10-21 15:15:15 +02:00
Nicolas Grekas
5a4be6841d bug #38635 [Cache] Use correct expiry in ChainAdapter (Nyholm)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Cache] Use correct expiry in ChainAdapter

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

When we are syncing the chain, Let's use expiry if we have it. If not, fallback to defaultLifetime.

TODO:
- [x] Add tests

Commits
-------

17e0167798 [Cache] Use correct expiry in ChainAdapter
2020-10-21 11:34:34 +02:00