8000 [Security] Add missing French translations for logging throttling by jmsche · Pull Request #40889 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Security] Add missing French translations for logging throttling #40889

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4,564 commits into from
Closed
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
4564 commits
Select commit Hold shift + click to select a range
e23aae3
Merge branch '5.1' into 5.2
nicolas-grekas Jan 25, 2021
a5fd0c4
Changed private static array-properties to const
simonberger Jan 25, 2021
1756072
minor #39965 Changed private static array-properties to const (5.2) …
nicolas-grekas Jan 25, 2021
470d3e7
Fix merge
nicolas-grekas Jan 25, 2021
79c9a1a
Fix typo in test
OskarStark Jan 25, 2021
5532e0a
minor #39966 Fix typo in test (OskarStark)
OskarStark Jan 25, 2021
fe57893
Merge branch '5.1' into 5.2
OskarStark Jan 25, 2021
8c1bac9
propagate the object being validated to sub-constraints
xabbuh Jan 4, 2021
97779ec
bug #39872 [Validator] propagate the object being validated to nested…
nicolas-grekas Jan 26, 2021
8dcc3d6
[SecurityBundle] Fix referencing aliases from RegisterEntryPointPass
chalasr Jan 26, 2021
f7e6196
bug #39982 [SecurityBundle] Fix referencing aliases from RegisterEntr…
nicolas-grekas Jan 26, 2021
abf8010
Merge branch '4.4' into 5.1
nicolas-grekas Jan 27, 2021
98b58b4
Merge branch '5.1' into 5.2
nicolas-grekas Jan 27, 2021
28f1ab6
Merge branch '4.4' into 5.1
nicolas-grekas Jan 27, 2021
854de3c
Merge branch '5.1' into 5.2
nicolas-grekas Jan 27, 2021
cfab105
add missing use statement
xabbuh Jan 27, 2021
fcf07ae
minor #39994 [FrameworkBundle] add missing use statement (xabbuh)
nicolas-grekas Jan 27, 2021
02d2834
Merge branch '5.1' into 5.2
nicolas-grekas Jan 27, 2021
bdae9cb
Fix merge
nicolas-grekas Jan 27, 2021
07abdf2
Merge branch '5.1' into 5.2
nicolas-grekas Jan 27, 2021
48afd70
Fix merge
nicolas-grekas Jan 27, 2021
df5c849
Merge branch '5.1' into 5.2
nicolas-grekas Jan 27, 2021
75fd4ce
More cleanups and fixes
nicolas-grekas Jan 27, 2021
8a7bf23
Merge branch '5.1' into 5.2
nicolas-grekas Jan 27, 2021
0045fc4
More cleanups and fixes
nicolas-grekas Jan 27, 2021
175b725
Fix merge
nicolas-grekas Jan 27, 2021
b2fee7a
Use import instead of FQCN
OskarStark Jan 27, 2021
ea2ced0
minor #39996 Use import instead of FQCN (OskarStark)
nicolas-grekas Jan 27, 2021
0e78672
Merge branch '5.1' into 5.2
nicolas-grekas Jan 27, 2021
be7cfb1
Update CHANGELOG for 5.2.2
fabpot Jan 27, 2021
fc85acb
Update VERSION for 5.2.2
fabpot Jan 27, 2021
b8c9ce9
Merge pull request #40001 from fabpot/release-5.2.2
fabpot Jan 27, 2021
712e033
Bump Symfony version to 5.2.3
fabpot Jan 27, 2021
438a865
Merge branch '4.4' into 5.2
nicolas-grekas Jan 27, 2021
8449d8a
fix merge
nicolas-grekas Jan 27, 2021
9680a27
[Uid] Fix time to float conversion
fancyweb Jan 27, 2021
2176ff6
Fix SES test
jderusse Jan 27, 2021
ab48b7b
minor #40006 [Mailer] Fix SES test (jderusse)
nicolas-grekas Jan 27, 2021
6a935bb
bug #40003 [Uid] Fix time to float conversion (fancyweb)
nicolas-grekas Jan 27, 2021
bdf3589
Merge branch '4.4' into 5.2
nicolas-grekas Jan 27, 2021
8555824
[Uid] improve logic in BinaryUtil::timeToFloat()
nicolas-grekas Jan 27, 2021
bda55f0
minor #40009 [Uid] improve logic in BinaryUtil::timeToFloat() (nicola…
nicolas-grekas Jan 27, 2021
adb0fd1
take into account all label related options
xabbuh Jan 27, 2021
e380102
[DoctrineBridge] add missing `@experimental` annotation on Uid genera…
nicolas-grekas Jan 28, 2021
b9094f4
bug #40027 [DoctrineBridge] add missing `@experimental` annotation on…
fabpot Jan 28, 2021
37166f7
bug #40018 [TwigBridge] take into account all label related options (…
nicolas-grekas Jan 28, 2021
a07638b
Merge branch '4.4' into 5.2
jderusse Jan 28, 2021
42eeb44
[Messenger] Fix Doctrine setup when using a migration
fabpot Feb 1, 2021
8f325f5
bug #40055 [Messenger] Fix Doctrine setup when using a migration (fab…
fabpot Feb 1, 2021
d563c84
[Mailer][Mime] Fix case-sensitive handling of header names
piku235 Jan 23, 2021
cedcb55
bug #39954 [Mailer][Mime] Fix case-sensitive handling of header names…
fabpot Feb 2, 2021
dab16d0
Merge branch '4.4' into 5.2
fabpot Feb 3, 2021
4f48e80
Update CHANGELOG for 5.2.3
fabpot Feb 3, 2021
f422064
Update VERSION for 5.2.3
fabpot Feb 3, 2021
e16bbdc
Merge pull request #40074 from fabpot/release-5.2.3
fabpot Feb 3, 2021
90ace3e
Bump Symfony version to 5.2.4
fabpot Feb 3, 2021
216abd0
Fix Request with DNS issue not retried
jderusse Feb 3, 2021
c92b618
Merge branch '4.4' into 5.2
nicolas-grekas Feb 4, 2021
854eabd
bug #40080 Fix Request with DNS issue not retried (jderusse)
nicolas-grekas Feb 4, 2021
b3ca21c
Always autoload string functions on symfony/symfony
chalasr Feb 4, 2021
a8fc934
Merge branch '4.4' into 5.2
nicolas-grekas Feb 4, 2021
b128423
fix merge
nicolas-grekas Feb 4, 2021
bd26a79
[Worflow] Fixed GuardListener when using the new Security system
lyrixx Feb 4, 2021
53ae8c2
fix typo
xabbuh Feb 5, 2021
382b10f
Merge branch '4.4' into 5.2
nicolas-grekas Feb 5, 2021
6891550
Merge branch '4.4' into 5.2
nicolas-grekas Feb 6, 2021
6f16e83
Merge branch '4.4' into 5.2
nicolas-grekas Feb 6, 2021
839c7a1
minor #40093 Always autoload string functions on symfony/symfony (cha…
nicolas-grekas Feb 6, 2021
8d6c64d
Fix kafka tests
jderusse Feb 6, 2021
d8e36f2
minor #40118 Fix kafka tests (jderusse)
Nyholm Feb 6, 2021
3de453c
merge translation parameters with value configured for parent form
xabbuh Feb 7, 2021
b9af88f
bug #40124 [Form] merge translation parameters with value configured …
nicolas-grekas Feb 7, 2021
7866a0f
Merge branch '4.4' into 5.2
nicolas-grekas Feb 8, 2021
fbe49cf
forward the label_html option to expanded choice fields
xabbuh Feb 9, 2021
ec38bab
bug #40137 [Form] forward the label_html option to expanded choice fi…
xabbuh Feb 9, 2021
0a26f1b
Merge branch '4.4' into 5.2
nicolas-grekas Feb 10, 2021
0bb4ba1
Merge branch '4.4' into 5.2
nicolas-grekas Feb 10, 2021
70ad160
Merge branch '4.4' into 5.2
nicolas-grekas Feb 10, 2021
9fa7dbd
Cleanup phpunit script
nicolas-grekas Feb 10, 2021
5703316
[RateLimiter] Fix sliding_window misbehaving with stale records
xesxen Feb 9, 2021
b636e66
bug #40141 [RateLimiter] Fix sliding_window misbehaving with stale re…
fabpot Feb 11, 2021
55ca168
Merge branch '4.4' into 5.2
nicolas-grekas Feb 11, 2021
b3f046d
Merge branch '4.4' into 5.2
nicolas-grekas Feb 11, 2021
6dce322
Merge branch '4.4' into 5.2
xabbuh Feb 12, 2021
2248af5
[HttpFoundation] Fix typo in exception message
carlos-ea Feb 12, 2021
15e2067
minor #40166 [HttpFoundation] Fix typo in exception message (carlos-ea)
fabpot Feb 12, 2021
b15bfc4
bug #39671 [Worflow] Fixed GuardListener when using the new Security …
lyrixx Feb 15, 2021
b596568
[Workflow] Re-add InvalidTokenConfigurationException for BC
chalasr Feb 15, 2021
7078382
minor #40201 [Workflow] Re-add InvalidTokenConfigurationException for…
chalasr Feb 15, 2021
4365af6
Merge branch '4.4' into 5.2
chalasr Feb 15, 2021
00b4b76
Merge branch '4.4' into 5.2
nicolas-grekas Feb 16, 2021
cc00e0e
[String] Check if function exists before declaring it
Nyholm Feb 16, 2021
7dcf156
bug #40203 [String] Check if function exists before declaring it (Nyh…
nicolas-grekas Feb 16, 2021
32cd77a
fix taking error message from the correct violation
xabbuh Feb 16, 2021
b148f89
bug #40211 [Validator] fix taking error message from the correct viol…
xabbuh Feb 17, 2021
e3b0c88
Merge branch '4.4' into 5.2
xabbuh Feb 17, 2021
ad60072
10000 [EventDispatcher] fix registering subscribers twice on edge-case
nicolas-grekas Feb 18, 2021
2f4cd77
bug #40246 [EventDispatcher] fix registering subscribers twice on edg…
nicolas-grekas Feb 18, 2021
11912f8
Merge branch '4.4' into 5.2
nicolas-grekas Feb 18, 2021
279e71f
[VarDumper] relax test case
nicolas-grekas Feb 18, 2021
acf4c33
[VarDumper] relax test case
nicolas-grekas Feb 18, 2021
978a9b8
[VarDumper] relax test case
nicolas-grekas Feb 18, 2021
8cec0b6
Merge branch '4.4' into 5.2
derrabus Feb 22, 2021
3619ae8
Merge branch '4.4' into 5.2
nicolas-grekas Feb 22, 2021
e98ab92
Merge branch '4.4' into 5.2
nicolas-grekas Feb 23, 2021
95fdd90
Allow x-forwarded-prefix trusted header.
drupol Feb 23, 2021
5028aaf
bug #40281 [FrameworkBundle] Allow x-forwarded-prefix trusted header …
nicolas-grekas Feb 23, 2021
2e865ac
Switched to non-null defaults in exception constructors
derrabus Feb 23, 2021
3a2906c
minor #40287 [Config] Switched to non-null defaults in exception cons…
chalasr Feb 24, 2021
8d3078d
[Security] #[CurrentUser] argument should resolve to null when it is …
chalasr Feb 23, 2021
b037319
bug #40286 [Security] #[CurrentUser] arguments should resolve to null…
chalasr Feb 24, 2021
f4c9fee
Merge branch '4.4' into 5.2
chalasr Feb 25, 2021
d978bea
Merge branch '4.4' into 5.2
nicolas-grekas Feb 25, 2021
5854d55
fix merge
nicolas-grekas Feb 25, 2021
2068652
Merge branch '4.4' into 5.2
nicolas-grekas Feb 25, 2021
82e3b17
Merge branch '4.4' into 5.2
derrabus Mar 1, 2021
bd6930e
[Messenger][SQS] Document missing option
Nyholm Mar 2, 2021
4108cde
minor #40343 [Messenger] [SQS] Document missing option "sslmode" (Nyh…
derrabus Mar 2, 2021
5985199
Merge branch '4.4' into 5.2
derrabus Mar 2, 2021
4b70db1
[Security] Remove unnecessary inherited doc annotation
junaidbinfarooq Mar 2, 2021
e0401df
minor #40340 [Security] Remove unnecessary inherited doc annotation (…
derrabus Mar 2, 2021
5fea563
Merge branch '4.4' into 5.2
fabpot Mar 4, 2021
3371e1c
[Messenger] Doctrine setup with migrations
Nyholm Mar 1, 2021
0940043
bug #40336 [Messenger] Doctrine setup with migrations (Nyholm)
fabpot Mar 4, 2021
3925849
Update CHANGELOG for 5.2.4
fabpot Mar 4, 2021
ff8cb87
Update VERSION for 5.2.4
fabpot Mar 4, 2021
5216698
Merge pull request #40364 from fabpot/release-5.2.4
fabpot Mar 4, 2021
f72d516
Bump Symfony version to 5.2.5
fabpot Mar 4, 2021
26061a1
Dont lock tables or start transactions
Nyholm Mar 5, 2021
61c5baf
Update notifier_transports.php
big-r81 Mar 5, 2021
da247c8
bug #40378 Changing ZulipTransportFactory tag to prevent the exceptio…
fabpot Mar 5, 2021
9978ba8
bug #40376 [Messenger] Don't lock tables or start transactions (Nyholm)
fabpot Mar 5, 2021
5973189
Merge branch '4.4' into 5.2
derrabus Mar 5, 2021
7ed3d36
Merge branch '4.4' into 5.2
fabpot Mar 6, 2021
436f697
Fix typo
fabpot Mar 6, 2021
706f05a
Merge branch '4.4' into 5.2
chalasr Mar 6, 2021
04cb83e
fix test
chalasr Mar 6, 2021
7bc31c6
[Security] Fix test
chalasr Mar 6, 2021
4667c85
Merge branch '4.4' into 5.2
derrabus Mar 7, 2021
ce8be3c
Merge branch '4.4' into 5.2
derrabus Mar 7, 2021
7d1029b
Fix `ConstraintViolation#getPropertyPath()` to always return `string`
Ocramius Mar 8, 2021
bedb982
[FrameworkBundle] fix XSD
nicolas-grekas Mar 9, 2021
dedb7ef
bug #40421 [FrameworkBundle] fix XSD (nicolas-grekas)
fabpot Mar 9, 2021
e5f9a89
bug #40415 Fix `ConstraintViolation#getPropertyPath()` to always retu…
fabpot Mar 10, 2021
72a464e
Fix `ConstraintViolation#getMessageTemplate()` to always return `string`
Ocramius Mar 8, 2021
40d955f
Update CHANGELOG for 5.2.5
fabpot Mar 10, 2021
3da617f
Update VERSION for 5.2.5
fabpot Mar 10, 2021
8f9f599
Merge pull request #40440 from fabpot/release-5.2.5
fabpot Mar 10, 2021
74c3c5f
Bump Symfony version to 5.2.6
fabpot Mar 10, 2021
16bacb1
Merge branch '4.4' into 5.2
derrabus Mar 10, 2021
dc8a43b
bug #40416 Fix `ConstraintViolation#getMessageTemplate()` to always r…
fabpot Mar 11, 2021
950e144
Merge branch '4.4' into 5.2
derrabus Mar 12, 2021
03a9ac2
Merge branch '4.4' into 5.2
xabbuh Mar 12, 2021
088fbf7
fix test
xabbuh Mar 12, 2021
76ee9ba
[Routing] Remove unnecessary references to User class in test fixtures
chalasr Mar 14, 2021
20ebdc7
minor #40463 [Routing] Remove unnecessary references to User class in…
chalasr Mar 14, 2021
c620f40
[RateLimiter] Fix wrong namespace in tests
chalasr Mar 14, 2021
5b878a2
minor #40465 [RateLimiter] [5.2] Fix wrong namespace in tests (chalasr)
chalasr Mar 14, 2021
7904d08
Make async-ses required
jderusse Mar 16, 2021
d9a8a05
bug #40481 make async-ses required (jderusse)
fabpot Mar 16, 2021
a4958ae
[FrameworkBundle] Make the TestBrowserToken interchangeable with othe…
Seldaek Mar 5, 2021
faf7269
bug #40368 [FrameworkBundle] Make the TestBrowserToken interchangeabl…
nicolas-grekas Mar 16, 2021
9ad7832
[ErrorHandler] Fix error caused by `include` + open_basedir
stlrnz Feb 18, 2021
8113f10
bug #40242 [ErrorHandler] Fix error caused by `include` + open_basedi…
nicolas-grekas Mar 16, 2021
ca06651
Merge branch '4.4' into 5.2
nicolas-grekas Mar 16, 2021
77fb0eb
[Security] Add XML support for authenticator manager
wouterj Mar 16, 2021
827cf0a
bug #40490 [Security] Add XML support for authenticator manager (wout…
fabpot Mar 16, 2021
98fce3e
Merge branch '4.4' into 5.2
nicolas-grekas Mar 17, 2021
00036b9
Merge branch '4.4' into 5.2
nicolas-grekas Mar 17, 2021
763edf9
Fix test
nicolas-grekas Mar 17, 2021
e3788b6
fix version constraint
xabbuh Mar 17, 2021
93e9337
enable HTTP method overrides as early as possible with the HTTP cache
xabbuh Mar 17, 2021
ab4fcf9
bug #40497 [HttpFoundation] enable HTTP method overrides as early as …
fabpot Mar 18, 2021
bd9e220
Merge branch '4.4' into 5.2
nicolas-grekas Mar 19, 2021
abe4ee5
[UID] refer to AbstractUid instead of "parent"
Nyholm Mar 21, 2021
9bb312d
minor #40531 [Uid] refer to AbstractUid instead of "parent" (Nyholm)
chalasr Mar 21, 2021
6958bdc
improve login throttling rate limiter requirement message
jrushlow Mar 22, 2021
7611d24
minor #40539 [Security] improve login throttling rate limiter require…
fabpot Mar 22, 2021
d585b64
Fixed parsing deprecated definitions without message key
adamwojs Mar 22, 2021
8ba12ec
[FrameworkBundle] ensure TestBrowserToken::$firewallName is serialized
kbond Mar 22, 2021
e61553a
Security hardening - Rate limiter
jderusse Mar 22, 2021
0f4870b
bug #40547 [RateLimiter] Security hardening - Rate limiter (jderusse)
Nyholm Mar 23, 2021
4c2f77e
bug #40544 [FrameworkBundle] ensure TestBrowserToken::$firewallName i…
nicolas-grekas Mar 23, 2021
36b36dc
[Command] fix emojis messing up the line width
MarionLeHerisson Mar 19, 2021
1044c0b
bug #40524 [Console] fix emojis messing up the line width (MarionLeHe…
nicolas-grekas Mar 23, 2021
88d222d
Merge branch '4.4' into 5.2
nicolas-grekas Mar 23, 2021
e494b38
bug #40541 Fixed parsing deprecated definitions without message key (…
nicolas-grekas Mar 23, 2021
7a972c4
Merge branch '4.4' into 5.2
nicolas-grekas Mar 23, 2021
5e9644f
Merge branch '4.4' into 5.2
nicolas-grekas Mar 23, 2021
36cc161
Merge branch '4.4' into 5.2
nicolas-grekas Mar 23, 2021
af6f3c2
[Config][FrameworkBundle] Hint to use PHP 8+ or to install Annotation…
dunglas Mar 25, 2021
6e1015f
Merge branch '4.4' into 5.2
xabbuh Mar 28, 2021
d33973b
fix merge
xabbuh Mar 28, 2021
73999b8
fix docblock
xabbuh Mar 28, 2021
89d9de2
Use concrete user related classes in the tests
wouterj Mar 28, 2021
6e206bc
minor #40609 [Security] Use concrete UserInterface and UserProviderIn…
wouterj Mar 28, 2021
b5f0f7b
Merge branch '4.4' into 5.2
wouterj Mar 28, 2021
5545755
minor #40611 [HttpKernel] fix docblock (xabbuh)
Nyholm Mar 28, 2021
631408b
[Security] Use more concrete user classes in tests
wouterj Mar 28, 2021
567e118
minor #40612 [Security] Use more concrete user classes in tests (wout…
chalasr Mar 28, 2021
361206a
Update CHANGELOG for 5.2.6
fabpot Mar 29, 2021
4217e4c
Update VERSION for 5.2.6
fabpot Mar 29, 2021
f52424e
Merge pull request #40617 from fabpot/release-5.2.6
fabpot Mar 29, 2021
d6020a9
Bump Symfony version to 5.2.7
fabpot Mar 29, 2021
8aa6818
[FrameworkBundle] dont access the container to configure http_cache
nicolas-grekas Mar 29, 2021
1993bb2
Merge branch '4.4' into 5.2
derrabus Mar 29, 2021
87a67be
bug #40619 [FrameworkBundle] dont access the container to configure h…
chalasr Mar 29, 2021
481222f
minor #40586 [Config][FrameworkBundle] Hint to use PHP 8+ or to insta…
chalasr Mar 29, 2021
de43e36
[Stopwatch] Document new "name" property of StopwatchEvent
simivar Mar 29, 2021
54209bb
minor #40627 [Stopwatch] Document new "name" property of StopwatchEve…
chalasr Mar 29, 2021
cf66399
Fix sleep value
jderusse Mar 31, 2021
4a8c0b1
[Translation] Remove file added back from a bad merge
nicolas-grekas Apr 1, 2021
6990829
Update references to the ContainerConfigurator
lerminou Apr 1, 2021
6608880
minor #40668 Update references to the ContainerConfigurator (lerminou)
nicolas-grekas Apr 1, 2021
f251684
[Form] Fix 'invalid_message' use in multiple ChoiceType
alexandre-daubois Mar 31, 2021
3de5b38
fix test
xabbuh Apr 1, 2021
f9e38df
minor #40670 [FrameworkBundle] fix test (xabbuh)
nicolas-grekas Apr 1, 2021
4d23fec
bug #40658 [RateLimiter] Fix sleep value (jderusse)
nicolas-grekas Apr 1, 2021
b5d1cbc
Merge branch '4.4' into 5.2
nicolas-grekas Apr 1, 2021
97ceba0
improve dx and document auth exception
jrushlow Apr 1, 2021
76a88f2
[Security] Mark ExpiredLoginLinkStorage as experimental
Nyholm Apr 3, 2021
b455de0
added missing gitattributes and gitignore
iamvar Apr 3, 2021
fa03838
minor #40703 [Mailer][Notifier] Added missing gitattributes and gitig…
Nyholm Apr 4, 2021
09866a3
minor #40693 [Security] Mark ExpiredLoginLinkStorage as experimental …
derrabus Apr 4, 2021
58fa56f
Merge branch '4.4' into 5.2
derrabus Apr 4, 2021
fbd4cb2
Update README.md
94noni Apr 4, 2021
2ad08d5
minor #40672 [Security] [Passport] improve dx and document Authentica…
wouterj Apr 5, 2021
9459420
Merge branch '4.4' into 5.2
derrabus Apr 7, 2021
b64ae4d
Merge branch '4.4' into 5.2
derrabus Apr 7, 2021
3f28f2a
[CS] [5.2] Replace easy occurrences of ?: with ??
fancyweb Apr 7, 2021
dc84d5a
minor #40729 [CS] [5.2] Replace easy occurrences of ?: with ?? (fancy…
derrabus Apr 7, 2021
f2de7d5
minor #40704 Update README.md (94noni)
Nyholm Apr 7, 2021
dc02ab3
[Console] Add Helper::strwidth() and Helper::strlength()
Nyholm Apr 3, 2021
d9ea4c5
Add test.
grasmash Mar 31, 2021
74056a7
bug #40698 [Console] Add Helper::width() and Helper::length() (Nyholm…
fabpot Apr 8, 2021
59f9717
Merge branch '4.4' into 5.2
chalasr Apr 8, 2021
3a14868
bug #40660 [Form] Fix 'invalid_message' use in multiple ChoiceType (a…
Nyholm Apr 9, 2021
86c9c3b
Merge branch '4.4' into 5.2
derrabus Apr 11, 2021
c3b4e81
Merge branch '4.4' into 5.2
nicolas-grekas Apr 12, 2021
f2ee8bc
[WebProfiler] Use ControllerReference instead of URL in twig render()
Foxprodev Apr 13, 2021
ade71f0
bug #40791 [WebProfilerBundle] Use ControllerReference instead of URL…
derrabus Apr 13, 2021
255283c
Merge branch '4.4' into 5.2
derrabus Apr 13, 2021
255b7b6
Merge branch '4.4' into 5.2
chalasr Apr 14, 2021
be964bd
[FrameworkBundle] Fix array controller link in debug:router
fancyweb Apr 13, 2021
449c60f
bug #40802 [FrameworkBundle] Fix array controller link in debug:route…
nicolas-grekas Apr 16, 2021
9fe3cce
Merge branch '4.4' into 5.2
nicolas-grekas Apr 16, 2021
bf6e98c
Merge branch '4.4' into 5.2
derrabus Apr 19, 2021
00048a9
[DependencyInjection][AliasDeprecatedPublicServicesPass] Noop when th…
fancyweb Apr 19, 2021
d4844ef
bug #40872 [DependencyInjection] [AliasDeprecatedPublicServicesPass] …
fabpot Apr 20, 2021
b52ac38
[Security] Add missing French translations for logging throttling
jmsche Apr 21, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private function addTaggedSubscribers(ContainerBuilder $container, array &$liste

if (!isset($managerDefs[$con])) {
$managerDef = $parentDef = $this->getEventManagerDef($container, $con);
while ($parentDef instanceof ChildDefinition) {
while (!$parentDef->getClass() && $parentDef instanceof ChildDefinition) {
$parentDef = $container->findDefinition($parentDef->getParent());
}
$managerClass = $container->getParameterBag()->resolveValue($parentDef->getClass());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,6 @@ public function testGetUserWithEmptyContainer()
$controller->getUser();
}

/**
* @param $token
*/
private function getContainerWithTokenStorage($token = null): Container
{
$tokenStorage = $this->getMockBuilder(\Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage::class)->getMock();
Expand Down Expand Up @@ -484,10 +481,10 @@ public function testGenerateUrl()
public function testRedirect()
{
$controller = $this->createController();
$response = $controller->redirect('http://dunglas.fr', 301);
$response = $controller->redirect('https://dunglas.fr', 301);

$this->assertInstanceOf(\Symfony\Component\HttpFoundation\RedirectResponse::class, $response);
$this->assertSame('http://dunglas.fr', $response->getTargetUrl());
$this->assertSame('https://dunglas.fr', $response->getTargetUrl());
$this->assertSame(301, $response->getStatusCode());
}

Expand Down Expand Up @@ -532,7 +529,7 @@ public function testCreateFormBuilder()

public function testGetDoctrine()
{
$doctrine = $this->getMockBuilder(\Doctrine\Persistence\ManagerRegistry::class)->getMock();
$doctrine = $this->createMock(ManagerRegistry::class);

$container = new Container();
$container->set('doctrine', $doctrine);
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Bundle/FrameworkBundle/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"require-dev": {
"doctrine/annotations": "^1.10.4",
"doctrine/cache": "~1.0",
"doctrine/persistence": "^1.3|^2.0",
"symfony/asset": "^5.1",
"symfony/browser-kit": "^4.4|^5.0",
"symfony/console": "^5.2",
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Console/ConsoleEvents.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ final class ConsoleEvents
/**
* The COMMAND event allows you to attach listeners before any command is
* executed by the console. It also allows you to modify the command, input and output
* before they are handled to the command.
* before they are handed to the command.
*
* @Event("Symfony\Component\Console\Event\ConsoleCommandEvent")
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
use Symfony\Component\HttpKernel\KernelEvents;
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;

/**
* @group time-sensitive
*/
class InlineFragmentRendererTest extends TestCase
{
public function testRender()
Expand Down Expand Up @@ -253,16 +256,15 @@ public function testIpAddressOfRangedTrustedProxyIsSetAsRemote()
}

/**
* Creates a Kernel expecting a request equals to $request
* Allows delta in comparison in case REQUEST_TIME changed by 1 second.
* Creates a Kernel expecting a request equals to $request.
*/
private function getKernelExpectingRequest(Request $request, $strict = false)
{
$kernel = $this->getMockBuilder(\Symfony\Component\HttpKernel\HttpKernelInterface::class)->getMock();
$kernel
->expects($this->once())
->method('handle')
->with($this->equalTo($request, 1))
->with($request)
->willReturn(new Response('foo'));

return $kernel;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,19 @@ public function testFromDsnWithQueryOptions()
);
}

public function testFromDsnWithMixDsnQueryOptions()
{
$this->assertEquals(
Connection::fromDsn('redis://localhost/queue/group1?serializer=2', ['consumer' => 'specific-consumer']),
Connection::fromDsn('redis://localhost/queue/group1/specific-consumer?serializer=2')
);

$this->assertEquals(
Connection::fromDsn('redis://localhost/queue/group1/consumer1', ['consumer' => 'specific-consumer']),
Connection::fromDsn('redis://localhost/queue/group1/consumer1')
);
}

/**
* @group legacy
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ public static function fromDsn(string $dsn, array $redisOptions = [], \Redis $re
throw new InvalidArgumentException(sprintf('The given Redis DSN "%s" is invalid.', $dsn));
}
if (isset($parsedUrl['query'])) {
parse_str($parsedUrl['query'], $redisOptions);
parse_str($parsedUrl['query'], $dsnOptions);
$redisOptions = array_merge($redisOptions, $dsnOptions);
}

self::validateOptions($redisOptions);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,17 @@ public function testEncodedSkipsNonEncodeableStamps()
$encoded = $serializer->encode($envelope);
$this->assertStringNotContainsString('DummyPhpSerializerNonSendableStamp', $encoded['body']);
}

public function testNonUtf8IsBase64Encoded()
{
$serializer = new PhpSerializer();

$envelope = new Envelope(new DummyMessage("\xE9"));

$encoded = $serializer->encode($envelope);
$this->assertTrue((bool) preg_match('//u', $encoded['body']), 'Encodes non-UTF8 payloads');
$this->assertEquals($envelope, $serializer->decode($encoded));
}
}

class DummyPhpSerializerNonSendableStamp implements NonSendableStampInterface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ public function decode(array $encodedEnvelope): Envelope
throw new MessageDecodingFailedException('Encoded envelope should have at least a "body".');
}

if (false === strpos($encodedEnvelope['body'], '}', -1)) {
$encodedEnvelope['body'] = base64_decode($encodedEnvelope['body']);
}

$serializeEnvelope = stripslashes($encodedEnvelope['body']);

return $this->safelyUnserialize($serializeEnvelope);
Expand All @@ -43,6 +47,10 @@ public function encode(Envelope $envelope): array

$body = addslashes(serialize($envelope));

if (!preg_match('//u', $body)) {
$body = base64_encode($body);
}

return [
'body' => $body,
];
Expand Down
16 changes: 13 additions & 3 deletions src/Symfony/Component/Serializer/Normalizer/ObjectNormalizer.php
10000
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,19 @@ protected function extractAttributes(object $object, string $format = null, arra
$checkPropertyInitialization = \PHP_VERSION_ID >= 70400;

// properties
foreach ($reflClass->getProperties(\ReflectionProperty::IS_PUBLIC) as $reflProperty) {
if ($checkPropertyInitialization && !$reflProperty->isInitialized($object)) {
continue;
foreach ($reflClass->getProperties() as $reflProperty) {
if ($checkPropertyInitialization) {
$isPublic = $reflProperty->isPublic();
if (!$isPublic) {
$reflProperty->setAccessible(true);
}
if (!$reflProperty->isInitialized($object)) {
unset($attributes[$reflProperty->name]);
continue;
}
if (!$isPublic) {
continue;
}
}

if ($reflProperty->isStatic() || !$this->isAllowedAttribute($object, $reflProperty->name, $format, $context)) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Symfony\Component\Serializer\Tests\Fixtures;

/**
* @author Alexander Borisov <boshurik@gmail.com>
*/
final class Php74DummyPrivate
{
private string $uninitializedProperty;

private string $initializedProperty = 'defaultValue';

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

public function getInitializedProperty(): string
{
return $this->initializedProperty;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ public function testIgnoredAttributesNormalize()
$normalizer->normalize($objectOuter, null, $context)
);

$this->markTestIncomplete('AbstractObjectNormalizer::getAttributes caches attributes by class instead of by class+context, reusing the normalizer with different config therefore fails. This is being fixed in https://github.com/symfony/symfony/pull/30907');

$context = ['ignored_attributes' => ['foo', 'inner']];
$this->assertEquals(
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
use Symfony\Component\Serializer\Tests\Fixtures\CircularReferenceDummy;
use Symfony\Component\Serializer\Tests\Fixtures\OtherSerializedNameDummy;
use Symfony\Component\Serializer\Tests\Fixtures\Php74Dummy;
use Symfony\Component\Serializer\Tests\Fixtures\Php74DummyPrivate;
use Symfony\Component\Serializer\Tests\Fixtures\SiblingHolder;
use Symfony\Component\Serializer\Tests\Normalizer\Features\AttributesTestTrait;
use Symfony\Component\Serializer\Tests\Normalizer\Features\CallbacksTestTrait;
Expand Down Expand Up @@ -124,6 +125,18 @@ public function testNormalizeObjectWithUninitializedProperties()
);
}

/**
* @requires PHP 7.4
*/
public function testNormalizeObjectWithUninitializedPrivateProperties()
{
$obj = new Php74DummyPrivate();
$this->assertEquals(
['initializedProperty' => 'defaultValue'],
$this->normalizer->normalize($obj, 'any')
);
}

public function testDenormalize()
{
$obj = $this->normalizer->denormalize(
Expand Down
Loading
0