Skip to content

ListenerInterface deprecated since Symfony 4.3 #12780

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 729 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
729 commits
Select commit Hold shift + click to select a range
8f9a31a
minor #12371 [Security] Deprecated using more than one role in access…
javiereguiluz Sep 26, 2019
b9b21f9
Merge branch '4.3' into 4.4
javiereguiluz Sep 26, 2019
c5a7487
Merge branch '4.3' into 4.4
javiereguiluz Sep 26, 2019
9d46420
Merge branch '4.3' into 4.4
javiereguiluz Sep 26, 2019
b607ee3
Merge branch '4.3' into 4.4
javiereguiluz Sep 26, 2019
6a2d5cd
Merge branch '4.3' into 4.4
javiereguiluz Sep 26, 2019
7ff2e0d
Merge branch '4.3' into 4.4
javiereguiluz Sep 26, 2019
1441155
Merge branch '4.3' into 4.4
javiereguiluz Sep 26, 2019
7cf866f
Merge branch '4.3' into 4.4
javiereguiluz Sep 26, 2019
e0e6116
Merge branch '4.3' into 4.4
javiereguiluz Sep 26, 2019
53bfda7
Merge branch '4.3' into 4.4
javiereguiluz Sep 26, 2019
370b1b6
Merge branch '4.3' into 4.4
javiereguiluz Sep 26, 2019
382c5c8
[Ldap] Documented the deprecation related to query_string
javiereguiluz Jul 29, 2019
b6ecca9
minor #12050 [Ldap] Documented the deprecation related to query_strin…
javiereguiluz Sep 26, 2019
4dcd9f8
Merge branch '4.3' into 4.4
javiereguiluz Sep 26, 2019
60ed052
Merge branch '4.3' into 4.4
javiereguiluz Sep 26, 2019
30736ad
minor #12364 Document new ProgressBar time-based frequency mutators (…
javiereguiluz Sep 27, 2019
097b3a3
Reword
javiereguiluz Sep 27, 2019
8a758dd
Merge branch '4.3' into 4.4
wouterj Sep 28, 2019
a8ba53a
Merge branch '4.3' into 4.4
javiereguiluz Sep 29, 2019
9556e4c
Documented the DomCrawler option to normalize white spaces
javiereguiluz Sep 29, 2019
aea0435
Fixed some RST syntax issues
javiereguiluz Sep 29, 2019
6bfe085
Merge branch '4.3' into 4.4
javiereguiluz Oct 1, 2019
0db0284
Merge branch '4.3' into 4.4
javiereguiluz Oct 1, 2019
8b053bc
Updated some links
javiereguiluz Oct 1, 2019
c746a77
minor #12392 Documented the DomCrawler option to normalize white spac…
javiereguiluz Oct 1, 2019
f710996
minor #11705 [DomCrawler] Add hint about Form::getName method (JustBl…
javiereguiluz Oct 1, 2019
96b755e
Minor reword
javiereguiluz Oct 1, 2019
1980493
minor #12101 Add documentation for polyfill provided by the PHPUnitBr…
javiereguiluz Oct 1, 2019
afe6ef8
Reword
javiereguiluz Oct 1, 2019
c13d6ee
Minor syntax issue
javiereguiluz Oct 1, 2019
60f1409
Merge branch '4.3' into 4.4
javiereguiluz Oct 1, 2019
999154a
Merge branch '4.3' into 4.4
javiereguiluz Oct 2, 2019
8e4224f
Merge branch '4.3' into 4.4
javiereguiluz Oct 3, 2019
50aac70
Merge branch '4.3' into 4.4
javiereguiluz Oct 3, 2019
c801b83
Merge branch '4.3' into 4.4
javiereguiluz Oct 3, 2019
c61768b
Merge branch '4.3' into 4.4
javiereguiluz Oct 3, 2019
1995a13
Merge branch '4.3' into 4.4
javiereguiluz Oct 3, 2019
2400a7e
Merge branch '4.3' into 4.4
javiereguiluz Oct 4, 2019
2cfda03
Merge branch '4.3' into 4.4
javiereguiluz Oct 4, 2019
752c1f2
Merge branch '4.3' into 4.4
javiereguiluz Oct 4, 2019
bbaa8d7
Fix double is
hiddewie Oct 4, 2019
e01de12
minor #12424 Fix double 'is' (hiddewie)
javiereguiluz Oct 5, 2019
a4ea784
[Ldap] Add security LdapUser and provider (4.4)
hiddewie Oct 4, 2019
f2a255e
minor #12423 [Ldap] Add security LdapUser and provider (4.4) (hiddewie)
javiereguiluz Oct 5, 2019
cc3f1c2
Merge branch '4.3' into 4.4
javiereguiluz Oct 5, 2019
00584d1
Remove exception for only-of-type selector
hiddewie Oct 5, 2019
5a474dd
Merge branch '4.3' into 4.4
javiereguiluz Oct 6, 2019
d00caa8
minor #12432 [CssSelector] Support *:only-of-type (hiddewie)
javiereguiluz Oct 6, 2019
65105ce
Reword
javiereguiluz Oct 6, 2019
aeedbd2
[Mailer] Add support for multiple mailers
hiddewie Oct 4, 2019
736f417
minor #12422 [Mailer] Add support for multiple mailers (hiddewie)
javiereguiluz Oct 6, 2019
d2c4d4a
Minor tweaks
javiereguiluz Oct 6, 2019
c62eb22
Merge branch '4.3' into 4.4
javiereguiluz Oct 7, 2019
07fd43a
Merge branch '4.3' into 4.4
javiereguiluz Oct 7, 2019
21f02d3
Merge branch '4.3' into 4.4
javiereguiluz Oct 8, 2019
9bc9dd1
Merge branch '4.3' into 4.4
javiereguiluz Oct 8, 2019
9e5e4e4
Merge branch '4.3' into 4.4
javiereguiluz Oct 8, 2019
7443bd5
Merge branch '4.3' into 4.4
javiereguiluz Oct 9, 2019
b8a50ae
Merge branch '4.3' into 4.4
javiereguiluz Oct 9, 2019
377d71c
[Form] Added docs for alpha3 option in CountryType and LanguageType
creiner Oct 7, 2019
8b33bc5
minor #12441 [Form] Added docs for alpha3 option in CountryType and L…
javiereguiluz Oct 9, 2019
0625d9c
Minor reword
javiereguiluz Oct 9, 2019
70a4199
Merge branch '4.3' into 4.4
javiereguiluz Oct 9, 2019
b4c79d7
Merge branch '4.3' into 4.4
javiereguiluz Oct 10, 2019
4b76e73
Changed the ISO Code and example for LanguageType
creiner Oct 11, 2019
fbfeec1
Documentation for Bootstrap 4 custom switches
Oct 11, 2019
3eb8008
minor #12463 [Form] Changed the ISO Code and example for LanguageType…
javiereguiluz Oct 11, 2019
6db5724
Moved links at the bottom of the articles
javiereguiluz Oct 11, 2019
15344cb
Merge branch '4.3' into 4.4
OskarStark Oct 11, 2019
17cd6d9
feature #12294 scope singly-implemented interfaces detection by file …
OskarStark Oct 11, 2019
874fd9c
Merge branch '4.3' into 4.4
javiereguiluz Oct 12, 2019
d5ec360
Merge remote-tracking branch 'upstream/4.4' into 4.4
javiereguiluz Oct 12, 2019
a7fdf17
Merge branch '4.3' into 4.4
javiereguiluz Oct 14, 2019
7295404
Adapted the HTTPlug integration docs to Async Client
Nyholm Sep 27, 2019
d353b61
Complete doc for 4.4 features
nicolas-grekas Oct 14, 2019
5cb38b9
Merge branch '4.3' into 4.4
javiereguiluz Oct 15, 2019
51b9c3f
Merge branch '4.3' into 4.4
javiereguiluz Oct 15, 2019
d735f48
Merge branch '4.3' into 4.4
javiereguiluz Oct 15, 2019
8cd0661
Merge branch '4.3' into 4.4
javiereguiluz Oct 15, 2019
d9c56c7
Merge branch '4.3' into 4.4
javiereguiluz Oct 15, 2019
53fb21d
Documented the doctrine_clear_entity_manager middleware
javiereguiluz Oct 15, 2019
e679a37
Merge branch '4.3' into 4.4
javiereguiluz Oct 15, 2019
b6ccd66
[Messenger] Allow to configure the db index on Redis transport
javiereguiluz Oct 15, 2019
e58bc3a
Merge branch '4.3' into 4.4
javiereguiluz Oct 16, 2019
d23e5ee
Merge branch '4.3' into 4.4
javiereguiluz Oct 16, 2019
4983d8e
minor #12483 [Messenger] Allow to configure the db index on Redis tra…
javiereguiluz Oct 16, 2019
361fbab
Merge branch '4.3' into 4.4
javiereguiluz Oct 16, 2019
21c0088
Merge branch '4.3' into 4.4
javiereguiluz Oct 16, 2019
482db78
[TwigBridge] Add show-deprecations option to the lint:twig command
Oct 16, 2019
d548d2c
[Mailer] Update documentation to reflect up-to-date package names
tucksaun Oct 16, 2019
27de64b
minor #12493 [Mailer] Update documentation to reflect up-to-date pack…
javiereguiluz Oct 16, 2019
be392bc
Move to the new DSN format for Mailer
fabpot Sep 2, 2019
ca56502
Minor tweaks
javiereguiluz Sep 16, 2019
a2c607b
[Mailer] Move remaining DSN to new format
tucksaun Oct 16, 2019
75c51ba
minor #12495 [Mailer] Move to the new DSN format (fabpot, javiereguil…
javiereguiluz Oct 16, 2019
47bdaeb
Merge branch '4.3' into 4.4
javiereguiluz Oct 16, 2019
ae42bab
Merge branch '4.3' into 4.4
javiereguiluz Oct 17, 2019
14050dd
Merge branch '4.3' into 4.4
javiereguiluz Oct 17, 2019
db11af0
minor #12492 [TwigBridge] Add show-deprecations option to the lint:tw…
javiereguiluz Oct 17, 2019
e121aaa
Minor tweak
javiereguiluz Oct 17, 2019
414b707
minor #12481 Documented the doctrine_clear_entity_manager middleware …
javiereguiluz Oct 17, 2019
32d1b54
Updated the Welcome Page for Symfony 4.4
javiereguiluz Oct 18, 2019
f93521b
minor #12507 Updated the Welcome Page for Symfony 4.4 (javiereguiluz)
javiereguiluz Oct 18, 2019
052d214
Merge branch '4.3' into 4.4
javiereguiluz Oct 18, 2019
fb9f940
Merge branch '4.3' into 4.4
javiereguiluz Oct 18, 2019
b578c7f
Merge branch '4.3' into 4.4
javiereguiluz Oct 18, 2019
7788c43
Merge branch '4.3' into 4.4
javiereguiluz Oct 18, 2019
9b6eb23
[Mailer][Mime] NamedAddress was removed in 4.4
ogizanagi Oct 18, 2019
0c25e35
Merge branch '4.3' into 4.4
javiereguiluz Oct 18, 2019
d34f541
Merge branch '4.3' into 4.4
javiereguiluz Oct 18, 2019
2b5a917
estored the Address::fromString() example
javiereguiluz Oct 18, 2019
4dff16c
minor #12512 [Mailer][Mime] NamedAddress was removed in 4.4 (ogizanagi)
javiereguiluz Oct 18, 2019
e7e52ca
Merge branch '4.3' into 4.4
javiereguiluz Oct 18, 2019
f0ad1f7
Merge branch '4.3' into 4.4
javiereguiluz Oct 18, 2019
091177b
Merge branch '4.3' into 4.4
javiereguiluz Oct 18, 2019
df71809
Merge branch '4.3' into 4.4
javiereguiluz Oct 21, 2019
a5728aa
Merge branch '4.3' into 4.4
javiereguiluz Oct 21, 2019
f20278a
Merge branch '4.3' into 4.4
javiereguiluz Oct 21, 2019
5643853
Merge branch '4.3' into 4.4
javiereguiluz Oct 21, 2019
cb879ee
Merge branch '4.3' into 4.4
javiereguiluz Oct 21, 2019
4a616f1
Merge branch '4.3' into 4.4
OskarStark Oct 23, 2019
71cff04
Documented $response->getInfo('canceled')
Toflar Oct 21, 2019
c7ecd24
feature #12526 Documented $response->getInfo('canceled') (Toflar)
OskarStark Oct 23, 2019
c82a7e1
Add versionadded directive. refs #12525
OskarStark Oct 23, 2019
498f13a
Merge branch '4.3' into 4.4
OskarStark Oct 23, 2019
9a926b7
Merge branch '4.3' into 4.4
OskarStark Oct 24, 2019
62042d2
Merge branch '4.3' into 4.4
OskarStark Oct 24, 2019
3dde3f9
Merge branch '4.3' into 4.4
javiereguiluz Oct 25, 2019
e3872af
Merge branch '4.3' into 4.4
javiereguiluz Oct 25, 2019
49d59a3
Merge branch '4.3' into 4.4
javiereguiluz Oct 29, 2019
6662965
Merge branch '4.3' into 4.4
javiereguiluz Oct 29, 2019
3c74d9c
[PHPUnit Bridge] Minor tweaks related to polyfills
javiereguiluz Oct 30, 2019
5de2dd3
Merge branch '4.3' into 4.4
OskarStark Oct 30, 2019
ae52d39
Merge branch '4.3' into 4.4
OskarStark Oct 31, 2019
f1e0c4c
Merge branch '4.3' into 4.4
OskarStark Oct 31, 2019
fdf457a
removing notes about doctrine_clear_entity_manager middleware
weaverryan Oct 31, 2019
db060cd
Merge branch '4.3' into 4.4
OskarStark Nov 1, 2019
7213ac3
minor #12564 [PHPUnit Bridge] Minor tweaks related to polyfills (javi…
OskarStark Nov 1, 2019
e6ee3aa
Merge branch '4.3' into 4.4
OskarStark Nov 1, 2019
cf622c8
minor #12389 Adapted the HTTPlug integration docs to Async Client (Ny…
OskarStark Nov 1, 2019
2f836b9
Use uppercase in title
OskarStark Nov 1, 2019
3d6c1eb
Merge branch '4.3' into 4.4
OskarStark Nov 1, 2019
76717bc
Merge branch '4.3' into 4.4
OskarStark Nov 2, 2019
481f5da
minor #12575 Removing notes about doctrine_clear_entity_manager middl…
OskarStark Nov 2, 2019
69f5df4
Merge branch '4.3' into 4.4
OskarStark Nov 3, 2019
3c43a14
Merge branch '4.3' into 4.4
javiereguiluz Nov 3, 2019
3374261
[Messenger] update events for 4.4
Tobion Nov 3, 2019
d71ae20
Merge branch '4.3' into 4.4
OskarStark Nov 4, 2019
c6138eb
Merge branch '4.3' into 4.4
OskarStark Nov 4, 2019
b98fa06
Remove hint that redis does not support DelayStamp
alexander-schranz Nov 5, 2019
d5f1e70
minor #12596 Remove hint that redis does not support DelayStamp (alex…
OskarStark Nov 5, 2019
d1a54e0
Merge branch '4.3' into 4.4
OskarStark Nov 6, 2019
dd656d9
Merge branch '4.3' into 4.4
OskarStark Nov 6, 2019
8cd2e65
Add WeekType Documentation
Nov 3, 2019
316a48b
[Console] Update some method names
javiereguiluz Nov 8, 2019
d379dae
feature #12464 [Form] Documented "Supporting Bootstrap 4 custom switc…
wouterj Nov 9, 2019
539ec5e
[#12464] Minor changes
wouterj Nov 9, 2019
c8e9ff5
Documented the new REMOTE_ADDR option
javiereguiluz Sep 27, 2019
dd8ff15
feature #12384 Documented the new REMOTE_ADDR option (javiereguiluz)
wouterj Nov 9, 2019
03ed48e
Explain how to add `from_transport` on `messenger.message_handler` tag
ruudk Aug 24, 2019
87cb74d
feature #12231 Explain how to add `from_transport` on `messenger.mess…
wouterj Nov 9, 2019
b8526c3
[#12231] Explicitly name the options that can be configured through tags
wouterj Nov 9, 2019
8980712
Merge branch '4.3' into 4.4
wouterj Nov 9, 2019
c109ac0
feature #12584 Add new WeekType Documentation (dFayet)
wouterj Nov 9, 2019
76076cf
[#12584] Small tweaks
wouterj Nov 9, 2019
3ef26b4
feature #12586 [Messenger] update events for 4.4 (Tobion)
wouterj Nov 9, 2019
f47bd8c
Merge branch '4.3' into 4.4
wouterj Nov 9, 2019
0b76608
Revert "bug #12600 [Doctrine] Don't mention invokable listeners in 4.…
wouterj Nov 9, 2019
9bfa4ce
[#12600] Added versionadded for invokable listeners
wouterj Nov 9, 2019
5f14232
feature #12604 [Console] Update some method names (javiereguiluz)
wouterj Nov 9, 2019
7da7c6c
Merge branch '4.3' into 4.4
wouterj Nov 9, 2019
42e0e7d
Merge branch '4.3' into 4.4
wouterj Nov 9, 2019
462f36a
Revert "minor #12371 [Security] Deprecated using more than one role i…
wouterj Nov 9, 2019
d4159e7
Merge branch '4.3' into 4.4
wouterj Nov 9, 2019
a129ed7
Make DOCtor happy
wouterj Nov 9, 2019
c0f24a3
Merge branch '4.3' into 4.4
wouterj Nov 10, 2019
aa4e931
Merge branch '4.3' into 4.4
OskarStark Nov 12, 2019
ad95a07
Merge branch '4.3' into 4.4
OskarStark Nov 12, 2019
1b2f5fa
Merge branch '4.3' into 4.4
OskarStark Nov 12, 2019
99f8596
Merge branch '4.3' into 4.4
OskarStark Nov 12, 2019
e1904b3
Merge branch '4.3' into 4.4
OskarStark Nov 14, 2019
cb5c807
Merge branch '4.3' into 4.4
OskarStark Nov 14, 2019
d3f812f
Merge branch '4.3' into 4.4
OskarStark Nov 14, 2019
809465b
Merge branch '4.3' into 4.4
OskarStark Nov 18, 2019
2ed38c4
Merge branch '4.3' into 4.4
OskarStark Nov 19, 2019
0ad9a9f
Merge branch '4.3' into 4.4
xabbuh Nov 21, 2019
edb2101
[Messenger] Update version constraint for Redis extension
phansys Nov 22, 2019
5c06111
Documented the IPUtils::anonymize method
javiereguiluz Nov 23, 2019
3dfe2d6
#12630 Update .env for \"send grid\" recipe change
Nov 23, 2019
dc4dc63
minor #12664 #12630 Update .env for "send grid" recipe change (Thomas…
wouterj Nov 23, 2019
bee88d6
feature #12663 Documented the IPUtils::anonymize method (javiereguiluz)
wouterj Nov 23, 2019
43dc280
Merge branch '4.3' into 4.4
wouterj Nov 23, 2019
81a4ad4
Remove deprecation notice block for tagged
alexandrunastase Nov 23, 2019
933c247
[Mailer] Removed mention of Let's Encrypt for S/MIME certificates
Nov 23, 2019
a942662
minor #12667 [Mailer] Removed mention of Let's Encrypt for S/MIME cer…
wouterj Nov 23, 2019
858ce34
minor #12670 Remove deprecation notice block for tagged (alexandrunas…
wouterj Nov 23, 2019
a3983f5
Merge branch '4.3' into 4.4
wouterj Nov 23, 2019
2e69b9d
minor #12659 [Messenger] Update version constraint for Redis extensio…
wouterj Nov 23, 2019
498dff9
Update "upgrading" guide for Symfony5
ThomasGallet Nov 23, 2019
7f1d7d6
minor #12673 Update "upgrading" guide for Symfony5 (ThomasGallet)
wouterj Nov 23, 2019
b16c96f
#12633 Update \"upgrading\" guide for Symfony5
Nov 23, 2019
3de3635
minor #12671 #12633 Update "upgrading" guide for Symfony5 (Thomas Ber…
wouterj Nov 23, 2019
755c0d4
Fixed duplicated text
wouterj Nov 23, 2019
853a7b2
Update routing.rst
amine-betari Nov 17, 2019
d2c6f01
minor #12646 Update routing.rst (amine-betari)
wouterj Nov 23, 2019
35ed391
[#12646] Minor sentence and standard fix
wouterj Nov 23, 2019
0545c3b
Merge branch '4.3' into 4.4
wouterj Nov 23, 2019
864d6e7
fix typo
xabbuh Nov 23, 2019
211503e
Merge branch '4.3' into 4.4
wouterj Nov 23, 2019
cf407e1
Merge branch '4.3' into 4.4
wouterj Nov 23, 2019
bae1123
Merge branch '4.3' into 4.4
wouterj Nov 23, 2019
89f8e68
Merge branch '4.3' into 4.4
wouterj Nov 23, 2019
fd73c0b
Replace tagged with tagged_iterator for service tagging PHP example
alexandrunastase Nov 23, 2019
c681bd7
Merge branch '4.3' into 4.4
javiereguiluz Nov 24, 2019
b798b26
minor #12681 Replace tagged with tagged_iterator for service tagging …
OskarStark Nov 26, 2019
c880766
Merge branch '4.3' into 4.4
OskarStark Nov 26, 2019
5bff359
Merge branch '4.3' into 4.4
OskarStark Nov 26, 2019
6b6c796
Merge branch '4.3' into 4.4
OskarStark Nov 27, 2019
7146962
Add documentation for exponential format number
Nov 27, 2019
45d54a0
Merge branch '4.3' into 4.4
OskarStark Nov 27, 2019
79160c8
Add versionadded in file
MrYamous Nov 27, 2019
7ec6d9d
[DependencyInjection] Bind tagged services
tienvx Nov 30, 2019
ab3a7eb
Merge branch '4.3' into 4.4
javiereguiluz Nov 30, 2019
81970b4
Merge branch '4.3' into 4.4
javiereguiluz Nov 30, 2019
c7c3ee7
Merge branch '4.3' into 4.4
javiereguiluz Nov 30, 2019
85a48d7
Merge branch '4.3' into 4.4
javiereguiluz Nov 30, 2019
7ae6f13
Merge branch '4.3' into 4.4
javiereguiluz Nov 30, 2019
0de1588
Added article on password migrations
wouterj Oct 12, 2019
230fb24
Merge branch '4.3' into 4.4
OskarStark Dec 2, 2019
634b284
feature #12741 [DependencyInjection] Bind tagged services (tienvx)
OskarStark Dec 2, 2019
81321a4
add versionadded directive. refs #12741
OskarStark Dec 2, 2019
01e2f35
minor
OskarStark Dec 2, 2019
09aee36
feature #12467 [Security] Added article on password migrations (wouterj)
wouterj Dec 2, 2019
b61e9c1
Merge branch '4.3' into 4.4
javiereguiluz Dec 2, 2019
627ec43
Update mailer.rst
atailouloute Nov 28, 2019
104780d
minor #12725 Update mailer.rst (atailouloute)
OskarStark Dec 3, 2019
4d3c978
feature #12711 Add documentation for exponential format number (Matth…
OskarStark Dec 3, 2019
37a5f1e
get/setThrowable
OskarStark Dec 3, 2019
c2aa229
Merge branch '4.3' into 4.4
OskarStark Dec 3, 2019
7ef72fe
minor #12749 Document: get/setThrowable (OskarStark)
OskarStark Dec 3, 2019
74ad034
Update lock.rst
JohJohan Dec 3, 2019
b281628
fix a typo in mailer docs (Mutliple -> Multiple)
pableu Dec 3, 2019
f1c443e
bug #12751 Fix typo PersistStoreInterface to PersistingStoreInterface…
OskarStark Dec 4, 2019
f8c75f7
Merge branch '4.3' into 4.4
OskarStark Dec 4, 2019
410acb6
minor #12757 Fix a typo in mailer docs (Mutliple -> Multiple) (pableu)
javiereguiluz Dec 4, 2019
1483ad1
Merge branch '4.3' into 4.4
javiereguiluz Dec 7, 2019
1e39562
Merge branch '4.3' into 4.4
wouterj Dec 8, 2019
3c6c7a3
Revert "Removed 4.4 versionadded from the 4.3 docs"
wouterj Dec 8, 2019
db6408a
ListenerInterface deprecated since Symfony 4.3
JohnyProkie Dec 8, 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
Binary file modified _images/quick_tour/no_routes_page.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 30 additions & 2 deletions bundles.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ Bundle Directory Structure

The directory structure of a bundle is meant to help to keep code consistent
between all Symfony bundles. It follows a set of conventions, but is flexible
to be adjusted if needed. Take a look at AcmeDemoBundle, as it contains some
of the most common elements of a bundle:
to be adjusted if needed:

``Controller/``
Contains the controllers of the bundle (e.g. ``RandomController.php``).
Expand Down Expand Up @@ -118,6 +117,35 @@ database, create and validate forms, create translations for your application,
write tests and much more. Each of these has their own place and role within
the bundle.

Overridding the Bundle Directory Structure
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Some of the bundle directories are conventions that can be overridden if needed.
For example, the **public directory**, which by default is located at
``<your-bundle>/Resources/public/``, can be changed by defining the
``getPublicDir()`` method in the bundle class::

// src/Acme/TestBundle/AcmeTestBundle.php
namespace App\Acme\TestBundle;

use Symfony\Component\HttpKernel\Bundle\Bundle;

class AcmeTestBundle extends Bundle
{
// ...

// the returned value must be relative to the bundle root directory
// (public dir is now <your-bundle>/public/ instead of <your-bundle>/Resources/public/)
public function getPublicDir(): string
{
return 'public/';
}
}

.. versionadded:: 4.4

The ``getPublicDir()`` method was introduced in Symfony 4.4.

Learn more
----------

Expand Down
82 changes: 21 additions & 61 deletions cache.rst
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ You can also create more customized pools:
<framework:pool name="my_cache_pool" adapter="cache.adapter.array"/>
<framework:pool name="acme.cache" adapter="cache.adapter.memcached"/>
<framework:pool name="foobar.cache" adapter="cache.adapter.memcached" provider="memcached://user:password@example.com"/>
<framework:pool name="short_cache" adapter="foobar.cache" default_lifetime="60"/>
<framework:pool name="short_cache" adapter="foobar.cache" default-lifetime="60"/>
</framework:cache>
</framework:config>
</container>
Expand Down Expand Up @@ -390,6 +390,10 @@ If an error happens when storing an item in a pool, Symfony stores it in the
other pools and no exception is thrown. Later, when the item is retrieved,
Symfony stores the item automatically in all the missing pools.

.. versionadded:: 4.4

Support for configuring a chain using ``framework.cache.pools`` was introduced in Symfony 4.4.

.. configuration-block::

.. code-block:: yaml
Expand All @@ -399,23 +403,11 @@ Symfony stores the item automatically in all the missing pools.
cache:
pools:
my_cache_pool:
adapter: cache.adapter.psr6
provider: app.my_cache_chain_adapter
cache.my_redis:
adapter: cache.adapter.redis
provider: 'redis://user:password@example.com'
cache.apcu:
adapter: cache.adapter.apcu
cache.array:
adapter: cache.adapter.array


services:
app.my_cache_chain_adapter:
class: Symfony\Component\Cache\Adapter\ChainAdapter
arguments:
- ['@cache.array', '@cache.apcu', '@cache.my_redis']
- 31536000 # One year
default_lifetime: 31536000 # One year
adapters:
- cache.adapter.array
- cache.adapter.apcu
- {name: cache.adapter.redis, provider: 'redis://user:password@example.com'}

.. code-block:: xml

Expand All @@ -429,23 +421,13 @@ Symfony stores the item automatically in all the missing pools.

<framework:config>
<framework:cache>
<framework:pool name="my_cache_pool" adapter="cache.adapter.psr6" provider="app.my_cache_chain_adapter"/>
<framework:pool name="cache.my_redis" adapter="cache.adapter.redis" provider="redis://user:password@example.com"/>
<framework:pool name="cache.apcu" adapter="cache.adapter.apcu"/>
<framework:pool name="cache.array" adapter="cache.adapter.array"/>
<framework:pool name="my_cache_pool" default-lifetime="31536000">
<framework:adapter name="cache.adapter.array"/>
<framework:adapter name="cache.adapter.apcu"/>
<framework:adapter name="cache.adapter.redis" provider="redis://user:password@example.com"/>
</framework:pool>
</framework:cache>
</framework:config>

<services>
<service id="app.my_cache_chain_adapter" class="Symfony\Component\Cache\Adapter\ChainAdapter">
<argument type="collection">
<argument type="service" value="cache.array"/>
<argument type="service" value="cache.apcu"/>
<argument type="service" value="cache.my_redis"/>
</argument>
<argument>31536000</argument>
</service>
</services>
</container>

.. code-block:: php
Expand All @@ -455,39 +437,17 @@ Symfony stores the item automatically in all the missing pools.
'cache' => [
'pools' => [
'my_cache_pool' => [
'adapter' => 'cache.adapter.psr6',
'provider' => 'app.my_cache_chain_adapter',
],
'cache.my_redis' => [
'adapter' => 'cache.adapter.redis',
'provider' => 'redis://user:password@example.com',
],
'cache.apcu' => [
'adapter' => 'cache.adapter.apcu',
],
'cache.array' => [
'adapter' => 'cache.adapter.array',
'default_lifetime' => 31536000, // One year
'adapters' => [
'cache.adapter.array',
'cache.adapter.apcu',
['name' => 'cache.adapter.redis', 'provider' => 'redis://user:password@example.com'],
],
],
],
],
]);

$container->getDefinition('app.my_cache_chain_adapter', \Symfony\Component\Cache\Adapter\ChainAdapter::class)
->addArgument([
new Reference('cache.array'),
new Reference('cache.apcu'),
new Reference('cache.my_redis'),
])
->addArgument(31536000);

.. note::

In this configuration the ``my_cache_pool`` pool is using the ``cache.adapter.psr6``
adapter and the ``app.my_cache_chain_adapter`` service as a provider. That is
because ``ChainAdapter`` does not support the ``cache.pool`` tag. So it is decorated
with the ``ProxyAdapter``.


Using Cache Tags
----------------

Expand Down
4 changes: 4 additions & 0 deletions components/cache/adapters/redis_adapter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ name of your service group::

The option to define multiple servers in a single DSN was introduced in Symfony 4.2.

.. versionadded:: 4.4

Redis Sentinel support was introduced in Symfony 4.4.

.. note::

See the :class:`Symfony\\Component\\Cache\\Traits\\RedisTrait` for more options
Expand Down
31 changes: 22 additions & 9 deletions components/console/helpers/progressbar.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,16 @@ you can also set the current progress by calling the

If your platform doesn't support ANSI codes, updates to the progress
bar are added as new lines. To prevent the output from being flooded,
adjust the
use the method :method:`Symfony\\Component\\Console\\Helper\\ProgressBar::minSecondsBetweenRedraws`
to limit the number of redraws and the method
:method:`Symfony\\Component\\Console\\Helper\\ProgressBar::setRedrawFrequency`
accordingly. By default, when using a ``max``, the redraw frequency
is set to *10%* of your ``max``.
to redraw every N iterations. By default, redraw frequency is
**100ms** or **10%** of your ``max``.

.. versionadded:: 4.4

The ``minSecondsBetweenRedraws()`` and ``maxSecondsBetweenRedraws()``
methods were introduced in Symfony 4.4.

If you don't know the exact number of steps in advance, set it to a reasonable
value and then call the ``setMaxSteps()`` method to update it as needed::
Expand Down Expand Up @@ -289,17 +295,19 @@ to display it can be customized::

.. caution::

For performance reasons, be careful if you set the total number of steps
to a high number. For example, if you're iterating over a large number of
items, consider setting the redraw frequency to a higher value by calling
:method:`Symfony\\Component\\Console\\Helper\\ProgressBar::setRedrawFrequency`,
so it updates on only some iterations::
For performance reasons, Symfony redraws screen every 100ms. If this is too
fast or to slow for your application, use the methods
:method:`Symfony\\Component\\Console\\Helper\\ProgressBar::minSecondsBetweenRedraws` and
:method:`Symfony\\Component\\Console\\Helper\\ProgressBar::maxSecondsBetweenRedraws`::

$progressBar = new ProgressBar($output, 50000);
$progressBar->start();

// update every 100 iterations
// this redraws the screen every 100 iterations, but sets additional limits:
// don't redraw slower than 200ms (0.2) or faster than 100ms (0.1)
$progressBar->setRedrawFrequency(100);
$progressBar->maxSecondsBetweenRedraws(0.2);
$progressBar->minSecondsBetweenRedraws(0.1);

$i = 0;
while ($i++ < 50000) {
Expand All @@ -308,6 +316,11 @@ to display it can be customized::
$progressBar->advance();
}

.. versionadded:: 4.4

The ``minSecondsBetweenRedraws`` and ``maxSecondsBetweenRedraws()`` methods
were introduced in Symfony 4.4.

Custom Placeholders
~~~~~~~~~~~~~~~~~~~

Expand Down
24 changes: 24 additions & 0 deletions components/console/helpers/questionhelper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,30 @@ provide a callback function to dynamically generate suggestions::

The ``setAutocompleterCallback()`` method was introduced in Symfony 4.3.

Do not Trim the Answer
~~~~~~~~~~~~~~~~~~~~~~

You can also specify if you want to not trim the answer by setting it directly with
:method:`Symfony\\Component\\Console\\Question\\Question::setTrimmable`::

use Symfony\Component\Console\Question\Question;

// ...
public function execute(InputInterface $input, OutputInterface $output)
{
// ...
$helper = $this->getHelper('question');

$question = new Question('What is the name of the child?');
$question->setTrimmable(false);
// if the users inputs 'elsa ' it will not be trimmed and you will get 'elsa ' as value
$name = $helper->ask($input, $output, $question);
}

.. versionadded:: 4.4

The ``setTrimmable()`` method was introduced in Symfony 4.4.

Hiding the User's Response
~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
13 changes: 9 additions & 4 deletions components/css_selector.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,16 @@ Pseudo-elements (``:before``, ``:after``, ``:first-line``,
``:first-letter``) are not supported because they select portions of text
rather than elements.

Several pseudo-classes are not yet supported:
Pseudo-classes are partially supported:

* ``*:first-of-type``, ``*:last-of-type``, ``*:nth-of-type``,
``*:nth-last-of-type``, ``*:only-of-type``. (These work with an element
name (e.g. ``li:first-of-type``) but not with ``*``).
* Not supported: ``*:first-of-type``, ``*:last-of-type``, ``*:nth-of-type`` and
``*:nth-last-of-type`` (all these work with an element name (e.g.
``li:first-of-type``) but not with the ``*`` selector).
* Supported: ``*:only-of-type``.

.. versionadded:: 4.4

The support for ``*:only-of-type`` was introduced in Symfony 4.4.

Learn more
----------
Expand Down
39 changes: 38 additions & 1 deletion components/dom_crawler.rst
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,14 @@ Namespaces can be explicitly registered with the
$crawler->registerNamespace('m', 'http://search.yahoo.com/mrss/');
$crawler = $crawler->filterXPath('//m:group//yt:aspectRatio');

Verify if the current node matches a selector::

$crawler->matches('p.lorem');

.. versionadded:: 4.4

The ``matches()`` method was introduced in Symfony 4.4.

Node Traversing
~~~~~~~~~~~~~~~

Expand Down Expand Up @@ -195,6 +203,14 @@ Get all the direct child nodes matching a CSS selector::

$crawler->filter('body')->children('p.lorem');

Get the first parent (heading toward the document root) of the element that matches the provided selector::

$crawler->closest('p.lorem');

.. versionadded:: 4.4

The ``closest()`` method was introduced in Symfony 4.4.

.. note::

All the traversal methods return a new :class:`Symfony\\Component\\DomCrawler\\Crawler`
Expand All @@ -216,10 +232,18 @@ Access the value of the first node of the current selection::
// avoid the exception passing an argument that text() returns when node does not exist
$message = $crawler->filterXPath('//body/p')->text('Default text content');

// pass TRUE as the second argument of text() to remove all extra white spaces, including
// the internal ones (e.g. " foo\n bar baz \n " is returned as "foo bar baz")
$crawler->filterXPath('//body/p')->text('Default text content', true);

.. versionadded:: 4.3

The default argument of ``text()`` was introduced in Symfony 4.3.

.. versionadded:: 4.4

The option to trim white spaces in ``text()`` was introduced in Symfony 4.4.

Access the attribute value of the first node of the current selection::

$class = $crawler->filterXPath('//body/p')->attr('class');
Expand Down Expand Up @@ -337,6 +361,15 @@ and :phpclass:`DOMNode` objects::

The default argument of ``html()`` was introduced in Symfony 4.3.

Or you can get the outer HTML of the first node using
:method:`Symfony\\Component\\DomCrawler\\Crawler::outerHtml`::

$html = $crawler->outerHtml();

.. versionadded:: 4.4

The ``outerHtml()`` method was introduced in Symfony 4.4.

Expression Evaluation
~~~~~~~~~~~~~~~~~~~~~

Expand Down Expand Up @@ -485,8 +518,12 @@ The :class:`Symfony\\Component\\DomCrawler\\Form` object has lots of very
useful methods for working with forms::

$uri = $form->getUri();

$method = $form->getMethod();
$name = $form->getName();

.. versionadded:: 4.4

The ``getName()`` method was introduced in Symfony 4.4.

The :method:`Symfony\\Component\\DomCrawler\\Form::getUri` method does more
than just return the ``action`` attribute of the form. If the form method
Expand Down
11 changes: 11 additions & 0 deletions components/dotenv.rst
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,17 @@ Use environment variables in values by prefixing variables with ``$``:
its value will depend on the ``DB_USER`` value defined in other files
instead of the value defined in this file.

Define a default value in case the environment variable is not set:

.. code-block:: terminal

DB_USER=
DB_PASS=${DB_USER:-root}pass # results in DB_PASS=rootpass

.. versionadded:: 4.4

The support for default values has been introduced in Symfony 4.4.

Embed commands via ``$()`` (not supported on Windows):

.. code-block:: terminal
Expand Down
Loading