Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[TwigBridge] bootstrap4 file_widget: allow setting label attributes declared in label_attr#31220

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 992 commits intosymfony:masterfromAngelFQC:patch-2
Apr 27, 2019
Merged
Show file tree
Hide file tree
Changes from1 commit
Commits
Show all changes
992 commits
Select commitHold shift + click to select a range
f7ec2d3
fixing unused variable names
weaverryanApr 4, 2019
da4db91
minor #30864 [Messenger] fixing unused variable names (weaverryan)
fabpotApr 4, 2019
26d15c8
[HttpClient] log requests, responses and pushes when they happen
nicolas-grekasApr 4, 2019
09e8d74
feature #30537 [HttpClient] logger integration (antonch1989, nicolas-…
fabpotApr 5, 2019
098a7ac
[HttpClient] Adjust logger messages and levels
lyrixxApr 5, 2019
8977f74
minor #30873 [HttpClient] Adjust logger messages and levels (lyrixx)
nicolas-grekasApr 5, 2019
8f81f55
[Messenger] test DoctrineTransport on travis and appveyor
vincenttouzetApr 3, 2019
fe75920
Add a "null://" transport
GaryPEGEOTNov 5, 2018
4fc6033
minor: remove the logger as it seems uneeded
Apr 6, 2019
a45235e
minor #30880 minor: remove the logger as it seems uneeded (Simperfit)
fabpotApr 6, 2019
8f8c82e
Make the in-memory transport resettable
srozeApr 6, 2019
292021b
[Messenger] Fixed DIC config when the messenger is not installed
lyrixxApr 6, 2019
ec18af4
feature #29097 [Messenger] Add a "in-memory://" transport (GaryPEGEOT…
fabpotApr 6, 2019
45fd75e
fixed CS
fabpotApr 6, 2019
9ab706b
bug #30881 [Messenger] Fixed DIC config when the messenger is not ins…
fabpotApr 6, 2019
3151b54
[messenger] AMQP configurable routing key & multiple queues
Jan 28, 2019
4b61602
removed unneeded tags
fabpotApr 6, 2019
550a569
minor #30857 [Messenger] test DoctrineTransport on travis and appveyo…
srozeApr 6, 2019
9793522
minor #29525 [Messenger] Make MessengerPass less strict when auto-reg…
srozeApr 6, 2019
a12b359
[Workflow] Fixed Guard Listener usage of RoleHierarchyInterface
lyrixxApr 6, 2019
76fd9c3
[Workflow] Fixed initial places when no places are configured
lyrixxApr 6, 2019
a7c4767
bug #30886 [Workflow] Fixed Guard Listener usage of RoleHierarchyInte…
fabpotApr 6, 2019
fe7363f
bug #30884 [Workflow] Fixed initial places when no places are configu…
fabpotApr 6, 2019
a515635
Simply code and rename "configuration" to "options"
srozeApr 6, 2019
e6eb43b
feature #30008 [messenger] Adds a stamp to provide a routing key on m…
srozeApr 6, 2019
e6e4cde
Ensure message is handled only once per handler
keulinhoJan 29, 2019
2e5e910
Rename exception, add change log and a few other things
srozeApr 6, 2019
c336696
[PropertyAccess] Allow to disable exception on invalid property path …
dimaboryMar 13, 2019
4e2b655
feature #30545 #30536 PropertyAccessor->getValue disable exception (d…
fabpotApr 6, 2019
5fe3701
feature #30020 [Messenger] Ensure message is handled only once per ha…
fabpotApr 6, 2019
40f2512
[DoctrineBridge] Add decimal form type
fancywebNov 2, 2017
fb2b37a
add force_full_scale option to handle all cases
fancywebMar 13, 2018
73708a6
[Workflow] Changed initial_places to initial_marking, added property …
HeahDudeMar 23, 2019
87839cf
[Workflow] Finished integration of initial_marking + deprecated suppo…
lyrixxApr 6, 2019
0393535
[Workflow] Deprecate worflow and single state marking
lyrixxApr 6, 2019
f527acf
Merge branch '4.2'
fabpotApr 6, 2019
2f648b0
Renamed NotPwned to NotCompromisedPassword
javiereguiluzApr 6, 2019
f4c2350
feature #30901 Renamed NotPwned to NotCompromisedPassword (javieregui…
fabpotApr 6, 2019
09dee17
Merge branch '4.2'
Apr 6, 2019
3f25734
Added new option "input" to NumberType
Apr 6, 2019
9bbdab6
[DomCrawler] Improve Crawler HTML5 parser need detection
tgalopinApr 6, 2019
62ab775
[Workflow] The TransitionEvent is able to modify the context
lyrixxApr 6, 2019
f82f1c0
feature #30892 [DomCrawler] Improve Crawler HTML5 parser need detecti…
fabpotApr 6, 2019
ea5ff18
Merge branch '4.2'
xabbuhApr 6, 2019
997270f
[Serializer] provide new ObjectPropertyListExtractorInterface
dmaicherApr 6, 2019
c976866
[symfony/HttpKernel] Throws an error when the generated class name is…
drupolApr 6, 2019
de3c742
feature #30906 [symfony/HttpKernel] Throws an error when the generate…
fabpotApr 6, 2019
f0786bb
Merge branch '4.2'
fabpotApr 6, 2019
ede6660
feature #30890 [Workflow] Changed initial_places to initial_marking, …
fabpotApr 6, 2019
a2f9975
[Workflow] Added workflow_transition_blockers twig function
lyrixxApr 6, 2019
aecca97
Use FormUrlEncoded when posting non-binary data
jderusseApr 5, 2019
8ac712b
[Validator] Wire NotCompromisedPassword in FrameworkBundle and handle…
tgalopinApr 6, 2019
b045aca
feature #30898 [Validator] Wire NotCompromisedPassword in FrameworkBu…
fabpotApr 6, 2019
f551f2d
Merge branch '4.2'
fabpotApr 6, 2019
07d90f9
Move doctrine/collections to an optional dep in doctrine-bridge
stofApr 6, 2019
31b3a55
Add comments when dumping po files
deguifApr 6, 2019
f3a0555
minor #30924 Move doctrine/collections to an optional dep in doctrine…
fabpotApr 6, 2019
4c78e60
feature #30893 Add "input" option to NumberType (fancyweb, Bernhard S…
fabpotApr 6, 2019
e5f14b7
feature #30908 [Workflow] Added workflow_transition_blockers twig fun…
fabpotApr 6, 2019
e2e38de
feature #30902 [Workflow] The TransitionEvent is able to modify the c…
fabpotApr 6, 2019
adba41a
feature #30904 [Serializer] provide new ObjectPropertyListExtractorIn…
fabpotApr 6, 2019
6e0785f
[Profiler] Update ProfilerController.php
error56Apr 6, 2019
f587944
minor #30916 [Profiler] Update ProfilerController.php (error56)
fabpotApr 6, 2019
a524658
Improve Translator caching
rpkampOct 20, 2018
a68b4c7
feature #28937 Improve Translator caching (rpkamp)
fabpotApr 6, 2019
69f0a0b
Removed undefined variable.
derrabusApr 6, 2019
1546c0d
[Serializer] Add datetimezone normalizer
jewome62Apr 6, 2019
ce220cd
feature #30915 [Serializer] Add datetimezone normalizer (jewome62)
fabpotApr 6, 2019
58d78ac
minor #30927 [HttpClient] Removed undefined variable (derrabus)
fabpotApr 6, 2019
536e53f
[Validator] add new `Timezone` validation constraint.
phansysApr 4, 2017
c73fd10
feature #30900 [Validator] add new `Timezone` validation constraint (…
fabpotApr 6, 2019
0d704b4
Remove unused import
ycerutoApr 6, 2019
5c0acfb
minor #30929 [HttpKernel] Remove unused import (yceruto)
fabpotApr 6, 2019
05e488f
fixed CS
fabpotApr 6, 2019
8a62892
bug #30876 [Mime][BrowserKit] Add FormUrlEncoded - Fix content-type i…
fabpotApr 6, 2019
56fa574
Uses an `AmqpStamp` to provide flags and attributes
srozeApr 6, 2019
9a2787e
[Validator] Add an option to disable NotCompromisedPasswordValidator
lyrixxApr 6, 2019
7628972
[Serializer] add return type hints for ObjectPropertyListExtractorInt…
dmaicherApr 6, 2019
3de3e4e
feature #30913 [Messenger] Uses an `AmqpStamp` to provide flags and a…
fabpotApr 6, 2019
e05aaf9
feature #30909 [Translator] Add comments when dumping po files (deguif)
fabpotApr 6, 2019
f80df4c
feature #30932 [Validator] Add an option to disable NotCompromisedPas…
fabpotApr 6, 2019
9afcc7b
minor #30934 [Serializer] add return type hints for ObjectPropertyLis…
fabpotApr 6, 2019
6b57ea9
Use env variable to create anytype of lock store
jderusseApr 6, 2019
fad7c8c
feature #30935 Use env variable to create anytype of lock store (jder…
fabpotApr 6, 2019
44d9fbe
Fix graph text color
Apr 6, 2019
a84842b
bug #30937 [Profiler] Fix graph text color (dFayet)
fabpotApr 6, 2019
faf6293
drop not needed "constant" type argument
xabbuhApr 6, 2019
de12e23
throw UnexpectedValueException instead
xabbuhApr 6, 2019
50c22b3
Fixed tests
lyrixxApr 6, 2019
0c2a2bf
ASSET-PathPackage-Enhancement - Use parent getUrl method instead of …
Apr 6, 2019
fec4bea
fix debug:autowiringcommand
sez-openMar 11, 2019
65b46a5
feature #30887 [FrameworkBundle] fix search in debug autowiring (sez-…
nicolas-grekasApr 7, 2019
e2dbe63
[Messenger] DoctrineTransport - Use InvalidArgumentException instead …
vincenttouzetApr 7, 2019
0b671aa
minor #30947 [Messenger] DoctrineTransport - Use InvalidArgumentExcep…
srozeApr 7, 2019
4c04601
[Form] group_by as callback returns array
antonch1989Mar 3, 2019
e53f696
feature #30429 [Form] group_by as callback returns array (antonch1989)
fabpotApr 7, 2019
8acf29e
There is no OB to flush.
derrabusApr 6, 2019
680074d
minor #30896 [HttpClient] Fix Notice on HttpClientTestCase::testTimeo…
fabpotApr 7, 2019
03da3a2
Add a `require` env var processor
mpdudeApr 6, 2019
5bf7ad4
[Routing][ObjectRouteLoader] Allow invokable route loader services
fancywebApr 6, 2019
758f028
minor #30938 [FrameworkBundle] drop not needed "constant" type argume…
fabpotApr 7, 2019
1f66e7b
Fix Lock test suite
jderusseApr 7, 2019
9e2f506
bug #30939 [Validator] throw UnexpectedValueException instead (xabbuh)
fabpotApr 7, 2019
5b72386
[Serializer] Add Support of recursive denormalization on object_to_po…
jewome62Mar 18, 2019
0d365a8
feature #30607 [Serializer] Add Support of recursive denormalization …
fabpotApr 7, 2019
77424c8
Refactor DefaultChoiceListFactory
vudaltsovApr 7, 2019
388d8f5
[Routing] UrlHelper to get absolute URL for a path
vudaltsovApr 7, 2019
2b01eaa
feature #30862 [Routing] UrlHelper to get absolute URL for a path (vu…
fabpotApr 7, 2019
76906ab
minor #30953 [Form] Refactor DefaultChoiceListFactory (vudaltsov)
fabpotApr 7, 2019
04eed54
minor #30944 Fix Lock test suite (jderusse)
fabpotApr 7, 2019
ca29039
minor #30943 [Asset] PathPackage : use parent getUrl Method instead o…
fabpotApr 7, 2019
4447f87
Merge branch '4.2'
nicolas-grekasApr 7, 2019
287c39b
[DoctrineBridge] Deprecated implicit optimization in DoctrineChoiceLo…
HeahDudeApr 7, 2019
35bf420
[DI] Fix bad error message for unused bind under _defaults
przemyslaw-boguszJan 26, 2019
3df05e0
feature #30962 [DoctrineBridge] Deprecated implicit optimization in D…
fabpotApr 7, 2019
b0989aa
feature #29935 [DI] Fix bad error message for unused bind under _defa…
nicolas-grekasApr 7, 2019
dd93b70
Use name converter when normalizing constraint violation list
norkunasMar 27, 2019
9a2fcc9
[HttpKernel] Add a \"short\" trace header format, make header configu…
mpdudeApr 7, 2019
226b36e
feature #30964 [HttpKernel] Add a "short" trace header format, make h…
nicolas-grekasApr 7, 2019
c6505d3
feature #30897 [DIC] Add a `require` env var processor (mpdude)
nicolas-grekasApr 7, 2019
b0cdf45
Set object list extractor as expiremental, and use final for default …
joelwurtzApr 7, 2019
47e571b
feature #30933 [Routing][ObjectRouteLoader] Allow invokable route loa…
nicolas-grekasApr 7, 2019
c274dff
feature #30963 [Serializer] Experimental for ObjectListExtractor (joe…
nicolas-grekasApr 7, 2019
e5de7b3
[Workflow] Update to `initial_marking`
pbowyerApr 7, 2019
a234c89
[DoctrineBridge] Deprecated using IdReader when optimization is not p…
HeahDudeApr 7, 2019
c68ef46
minor #30966 [DoctrineBridge] Deprecated using IdReader when optimiza…
stofApr 7, 2019
9f3ce48
Merge branch '4.2'
stofApr 7, 2019
b7281ce
minor #30982 [Workflow] Update UPGRADE notes (pbowyer)
fabpotApr 7, 2019
d412e77
Prepare for the new serialization mechanism
fancywebApr 7, 2019
0c82173
[Security] Add Argon2idPasswordEncoder
Dec 17, 2018
2efd7b2
Merge branch '4.2'
xabbuhApr 7, 2019
6b6c24c
Allow env processor to resolve `::`
jderusseApr 7, 2019
4518ac5
allow user/pass on dns while using failover/roundrobin and type fix f…
plandoltApr 7, 2019
44eb7a0
fix backwards compatibility breaks
xabbuhApr 7, 2019
408e4aa
bug #30990 Allow env processor to resolve `::` (jderusse)
nicolas-grekasApr 7, 2019
02e865b
bug #30992 [TwigBridge][DependencyInjection] ignore null arguments (x…
fabpotApr 8, 2019
546b114
fixed CS
fabpotApr 8, 2019
e02cbe9
Merge branch '4.2'
fabpotApr 8, 2019
3568418
bug #30995 [Mailer] allow user/pass on dsn while using failover/round…
fabpotApr 8, 2019
5638d6a
minor #30965 Prepare for the new serialization mechanism (fancyweb)
fabpotApr 8, 2019
fa7df09
feature #30968 [Security] Add Argon2idPasswordEncoder (chalasr)
fabpotApr 8, 2019
f539932
fixed CS
fabpotApr 8, 2019
e991472
[WebProfiler] Fix Javascript error when using custom stopwatch catego…
curry684Apr 7, 2019
9b9d416
bug #30973 [WebProfiler] Fix Javascript error when using custom stopw…
fabpotApr 8, 2019
4f39339
[FrameworkBundle] [TwigBundle] Move the hinclude key away from templa…
Apr 7, 2019
35b1ded
feature #30959 [FrameworkBundle] [TwigBundle] Move the hinclude key a…
fabpotApr 8, 2019
9d3c86f
Merge branch '4.2'
fabpotApr 8, 2019
bf89907
[FrameworkBundle] for Psr18HttpClient configuration
nicolas-grekasApr 8, 2019
87c4cc1
minor #31008 [FrameworkBundle] for Psr18HttpClient configuration (nic…
fabpotApr 8, 2019
d56ebef
Merge branch '4.2'
xabbuhApr 8, 2019
fbd439e
[HttpClient] Allow the HTTP_PROXY environment variable lookup with ph…
theofidryApr 7, 2019
fa308e2
minor #30978 [HttpClient] Allow the HTTP_PROXY environment variable l…
nicolas-grekasApr 8, 2019
682855f
fix tests
xabbuhApr 8, 2019
caad562
[Console] Add callback support to Console\Question autocompleter
MikkelPaulsonApr 7, 2019
4e1244e
feature #30997 [Console] Add callback support to Console\Question aut…
fabpotApr 8, 2019
d935f40
minor #31013 fix tests (xabbuh)
fabpotApr 8, 2019
dc95a6f
[Security] Fix argon2 availability checks
Apr 8, 2019
9a7a276
bug #31014 [Security] Fix argon2 availability checks (chalasr)
fabpotApr 8, 2019
b9e2046
Fixes sprintf unmapped parameter.
Apr 8, 2019
529211d
[Security] Replace Argon2*PasswordEncoder by SodiumPasswordEncoder
Apr 8, 2019
ace49c1
feature #31019 [Security] Replace Argon2*PasswordEncoder by SodiumPas…
fabpotApr 9, 2019
6a5de47
bug #31028 Fixes unmapped parameter for an error message in HttpClien…
fabpotApr 9, 2019
e77108d
[HttpClient] Add tests - update code style nits.
drupolApr 8, 2019
f84766e
bug #31018 [HttpClient] Add tests - update code style nits. (drupol)
nicolas-grekasApr 9, 2019
ff6bc79
Deprecate TreeBuilder::root
gharlanApr 8, 2019
4d9f5ee
feature #31027 [Config] Deprecate TreeBuilder::root (gharlan)
fabpotApr 9, 2019
4693422
Improve test coverage from #30997
Apr 9, 2019
2243bf5
minor #31042 Improve test coverage from #30997 (MikkelPaulson)
fabpotApr 10, 2019
20f4eb3
Document the state object that is passed around by the HttpClient.
derrabusApr 7, 2019
5c210e6
[Cache] Added command for list all available cache pools
NyholmApr 8, 2019
b09dfd9
feature #31021 [Cache] Added command for list all available cache poo…
nicolas-grekasApr 10, 2019
601adf5
[HttpClient] Do not allow setting both json and body
gisostallenbergApr 9, 2019
b2f8f0d
bug #31044 [HttpClient] Do not allow setting both json and body (giso…
fabpotApr 10, 2019
e6455ea
[Security][TokenInterface] Prepare for the new serialization mechanism
fancywebApr 8, 2019
a7ce547
minor #31011 [Security][TokenInterface] Prepare for the new serializa…
Apr 10, 2019
8e45fc0
[Dotenv] Deprecate useage of \"putenv\"
NyholmApr 10, 2019
b6c6338
feature #31062 [Dotenv] Deprecate useage of "putenv" (Nyholm)
fabpotApr 10, 2019
7e2fbe1
Merge branch '4.2'
fabpotApr 10, 2019
ccbb171
fixed roundrobin dead transport which should recover
plandoltApr 8, 2019
5d4d4e7
fixed roundrobin dead transport which should recover
fabpotApr 10, 2019
e0c4528
[Dotenv] fix typos
nicolas-grekasApr 10, 2019
e871a6a
Improve Dotenv messages
seriquynhApr 11, 2019
751baaf
bug #31024 [Mailer] fixed roundrobin test one dead which should recov…
fabpotApr 11, 2019
526cad6
Make sure that logged URL is the same as the one which is requested.
drupolApr 10, 2019
66701b8
bug #31069 Make sure that logged URL is the same as the one which is …
nicolas-grekasApr 11, 2019
15fedec
minor #31070 [Dotenv] Improve Dotenv messages (xuanquynh)
nicolas-grekasApr 11, 2019
3a68040
#30998 Fix deprecated setCircularReferenceHandler call
dhaarbrinkApr 11, 2019
3d2bc48
bug #31073 #30998 Fix deprecated setCircularReferenceHandler call (dh…
nicolas-grekasApr 11, 2019
bc9c89e
Merge branch '4.2'
nicolas-grekasApr 11, 2019
713aab7
Merge branch '4.2'
nicolas-grekasApr 11, 2019
027bd12
CS Fixes: Not double split with one array argument
rubenruaApr 10, 2019
936355e
minor #31063 CS Fixes: Not double split with one array argument (rube…
fabpotApr 11, 2019
1c73f9c
[PhpUnitBridge] Url encoded deprecations helper config
greg0ireSep 4, 2018
9edd84b
bug #30967 [HttpClient] Document the state object that is passed arou…
fabpotApr 12, 2019
a36fbe3
feature #29211 [PhpUnitBridge] Url encoded deprecations helper config…
fabpotApr 12, 2019
b11585e
[PhpUnitBridge] fixes
nicolas-grekasApr 12, 2019
371b55a
bug #31094 [PhpUnitBridge] fixes (nicolas-grekas)
nicolas-grekasApr 12, 2019
0cf1833
Merge branch '4.2'
nicolas-grekasApr 12, 2019
2f73c2f
fix
nicolas-grekasApr 12, 2019
b34738b
[PhpUnitBridge] ClockMock does not mock gmdate()
Apr 12, 2019
37eff9b
feature #31093 [PhpUnitBridge] ClockMock does not mock gmdate() (Simp…
nicolas-grekasApr 12, 2019
770c7dd
[PhpUnitBridge] CS fix
nicolas-grekasApr 12, 2019
08577f4
[PhpUnitBridge] fix PHP 5.5 support
nicolas-grekasApr 12, 2019
e45bc83
Merge branch '4.2'
nicolas-grekasApr 12, 2019
9ae73b1
Missing use statement added in UniqueValidator.
Apr 12, 2019
95932df
bug #31100 Missing use statement added in UniqueValidator. (rmikalkenas)
fabpotApr 13, 2019
d6b67d4
[Intl] Simplify API
ro0NLOct 12, 2018
5d3d1a0
feature #28846 [Intl] Simplify API (ro0NL)
fabpotApr 15, 2019
238f844
feature #30717 [Serializer] Use name converter when normalizing const…
nicolas-grekasApr 15, 2019
f1d3bc0
Show all option normalizers on debug:form command
ycerutoApr 11, 2019
70b448d
Reorganizing messenger serializer config and replacing base64_encode …
weaverryanApr 7, 2019
8f69954
[HttpClient] fix too high timeout in test
nicolas-grekasApr 15, 2019
498c749
minor #31118 [HttpClient] fix too high timeout in test (nicolas-grekas)
nicolas-grekasApr 15, 2019
6a94dea
[BrowserKit] Fixed BC-break introduced by rename of Client to Browser
DevristoApr 9, 2019
9aedfeb
bug #31040 [BrowserKit] Fixed BC-break introduced by rename of Client…
fabpotApr 15, 2019
e683dfa
feature #30957 [Messenger] Remove base64_encode & use addslashes (wea…
fabpotApr 15, 2019
7cf96a4
feature #31082 [Form] Show all option normalizers on debug:form comma…
fabpotApr 15, 2019
278a7ec
Merge branch '4.2'
nicolas-grekasApr 16, 2019
5d58307
Merge branch '4.2'
nicolas-grekasApr 16, 2019
14ba16b
Merge branch '4.2'
nicolas-grekasApr 16, 2019
d140648
Merge branch '4.2'
nicolas-grekasApr 16, 2019
96aee57
Merge branch '4.2'
nicolas-grekasApr 16, 2019
899985e
Merge branch '4.2'
nicolas-grekasApr 16, 2019
0cdb808
[VarDumper] add caster for WeakReference instances of PHP 7.4
nicolas-grekasApr 16, 2019
8d96861
Merge branch '4.2'
nicolas-grekasApr 17, 2019
a59fe66
feature #31130 [VarDumper] add caster for WeakReference instances of …
fabpotApr 18, 2019
28f7961
[Security] Add NativePasswordEncoder
nicolas-grekasApr 17, 2019
89ec311
feature #31140 [Security] Add NativePasswordEncoder (nicolas-grekas)
Apr 18, 2019
e197398
[Security] deprecate BCryptPasswordEncoder in favor of NativePassword…
nicolas-grekasApr 18, 2019
6c3c199
Treat undefined env var as strict mode
greg0ireApr 18, 2019
d9bcfc3
bug #31174 Treat undefined env var as strict mode (greg0ire)
nicolas-grekasApr 19, 2019
823d375
feature #31170 [Security] deprecate BCryptPasswordEncoder in favor of…
Apr 19, 2019
98929dc
Merge branch '4.2'
nicolas-grekasApr 19, 2019
4bea198
[Intl] Add Timezones
ro0NLOct 1, 2018
eab7611
feature #28831 [Intl] Add Timezones (ro0NL)
fabpotApr 21, 2019
fde4dc9
[DoctrineBridge] Unique mapping setting is optional
ksaverasApr 12, 2019
7e56ef1
bug #31085 [DoctrineBridge] Unique mapping setting is optional (ksave…
fabpotApr 22, 2019
3bdf4b0
[Messenger] ease testing and allow forking the middleware stack
nicolas-grekasApr 23, 2019
a7d2019
Merge branch '4.2'
nicolas-grekasApr 23, 2019
3278cb1
[Cache] Add optimized FileSystem & Redis TagAware Adapters
Feb 22, 2019
fba11b4
feature #30370 [Cache] Add optimized FileSystem & Redis TagAware Adap…
fabpotApr 24, 2019
1e9a9b2
[FrameworkBundle] Drop unused private method
Apr 25, 2019
be80868
minor #31251 [FrameworkBundle] Drop unused private method (chalasr)
nicolas-grekasApr 26, 2019
77f642e
feature #31204 [Messenger] ease testing and allow forking the middlew…
nicolas-grekasApr 26, 2019
95f09fd
[Intl] Add tests
ro0NLApr 27, 2019
a7d12ee
minor #31285 [Intl] Add tests (ro0NL)
nicolas-grekasApr 27, 2019
27d10a6
Merge branch '4.2'
Apr 27, 2019
c5b3b34
[EventDispatcher] Fix TraceableEventDispatcher FC/BC layer
Apr 25, 2019
6843905
bug #31254 [EventDispatcher] Fix TraceableEventDispatcher FC/BC layer…
nicolas-grekasApr 27, 2019
9c76b29
[TwigBridge] bootstrap4 file_widget: allow setting label attributes d…
AngelFQCApr 24, 2019
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
PrevPrevious commit
NextNext commit
[EventDispatcher] Fix TraceableEventDispatcher FC/BC layer
  • Loading branch information
Robin Chalas committedApr 27, 2019
commitc5b3b34b51a07e361d0eb3cf44fa8a2e01224329
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -18,6 +18,7 @@
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\EventDispatcher\LegacyEventDispatcherProxy;
use Symfony\Component\EventDispatcher\LegacyEventProxy;
use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Component\Stopwatch\Stopwatch;
use Symfony\Contracts\EventDispatcher\Event as ContractsEvent;
Expand DownExpand Up@@ -295,7 +296,7 @@ public function __call($method, $arguments)
*/
protected function beforeDispatch(string $eventName, $event)
{
$this->preDispatch($eventName, $event);
$this->preDispatch($eventName, $event instanceof Event ? $event : new LegacyEventProxy($event));
}

/**
Expand All@@ -305,7 +306,7 @@ protected function beforeDispatch(string $eventName, $event)
*/
protected function afterDispatch(string $eventName, $event)
{
$this->postDispatch($eventName, $event);
$this->postDispatch($eventName, $event instanceof Event ? $event : new LegacyEventProxy($event));
}

/**
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -14,7 +14,7 @@
use Psr\EventDispatcher\StoppableEventInterface;
use Symfony\Component\EventDispatcher\Event;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\EventDispatcher\WrappedEvent;
use Symfony\Component\EventDispatcher\LegacyEventProxy;
use Symfony\Component\Stopwatch\Stopwatch;
use Symfony\Component\VarDumper\Caster\ClassStub;
use Symfony\Contracts\EventDispatcher\Event as ContractsEvent;
Expand DownExpand Up@@ -112,8 +112,8 @@ public function getInfo($eventName)

public function __invoke(Event $event, $eventName, EventDispatcherInterface $dispatcher)
{
if ($event instanceofWrappedEvent) {
$event = $event->getWrappedEvent();
if ($event instanceofLegacyEventProxy) {
$event = $event->getEvent();
}

$dispatcher = $this->dispatcher ?: $dispatcher;
Expand Down
6 changes: 4 additions & 2 deletionssrc/Symfony/Component/EventDispatcher/EventDispatcher.php
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -12,6 +12,7 @@
namespace Symfony\Component\EventDispatcher;

use Psr\EventDispatcher\StoppableEventInterface;
use Symfony\Component\EventDispatcher\Debug\WrappedListener;
use Symfony\Contracts\EventDispatcher\Event as ContractsEvent;

/**
Expand DownExpand Up@@ -242,7 +243,8 @@ protected function callListeners(iterable $listeners, string $eventName, $event)
if ($stoppable && $event->isPropagationStopped()) {
break;
}
$listener($event instanceof Event ? $event : new WrappedEvent($event), $eventName, $this);
// @deprecated: the ternary operator is part of a BC layer and should be removed in 5.0
$listener($listener instanceof WrappedListener ? new LegacyEventProxy($event) : $event, $eventName, $this);
}
}

Expand DownExpand Up@@ -296,7 +298,7 @@ private function optimizeListeners(string $eventName): array
($closure = \Closure::fromCallable($listener))(...$args);
};
} else {
$closure = $listener instanceof \Closure ? $listener : \Closure::fromCallable($listener);
$closure = $listener instanceof \Closure|| $listener instanceof WrappedListener? $listener : \Closure::fromCallable($listener);
}
}
}
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -17,7 +17,7 @@
/**
* @internal to be removed in 5.0.
*/
final classWrappedEvent extends Event
final classLegacyEventProxy extends Event
{
private $event;

Expand All@@ -32,7 +32,7 @@ public function __construct($event)
/**
* @return object $event
*/
public functiongetWrappedEvent()
public functiongetEvent()
{
return $this->event;
}
Expand All@@ -54,4 +54,9 @@ public function stopPropagation()

$this->event->stopPropagation();
}

public function __call($name, $args)
{
return $this->event->{$name}(...$args);
}
}
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -18,6 +18,7 @@
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\Stopwatch\Stopwatch;
use Symfony\Contracts\EventDispatcher\Event as ContractsEvent;

class TraceableEventDispatcherTest extends TestCase
{
Expand DownExpand Up@@ -139,6 +140,19 @@ public function testClearCalledListeners()
$this->assertEquals([['event' => 'foo', 'pretty' => 'closure', 'priority' => 5]], $listeners);
}

public function testDispatchContractsEvent()
{
$expectedEvent = new ContractsEvent();
$tdispatcher = new TraceableEventDispatcher(new EventDispatcher(), new Stopwatch());
$tdispatcher->addListener('foo', function ($event) use ($expectedEvent) {
$this->assertSame($event, $expectedEvent);
}, 5);
$tdispatcher->dispatch($expectedEvent, 'foo');

$listeners = $tdispatcher->getCalledListeners();
$this->assertArrayHasKey('stub', $listeners[0]);
}

public function testDispatchAfterReset()
{
$tdispatcher = new TraceableEventDispatcher(new EventDispatcher(), new Stopwatch());
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp