Skip to content

PHP 7.1.3 is required by all Symfony 4.* versions not only by Symfony 4.0 #10732

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 348 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
348 commits
Select commit Hold shift + click to select a range
dc2bda4
add XML and PHP config examples
xabbuh Aug 7, 2018
c7901b7
minor #10155 add XML and PHP config examples (xabbuh)
xabbuh Aug 7, 2018
bddcf31
Merge branch '4.1'
javiereguiluz Aug 8, 2018
7bfbf58
Merge branch '4.1'
javiereguiluz Aug 10, 2018
3f1a810
Merge branch '4.1'
weaverryan Aug 18, 2018
1bbaa64
Merge branch '4.1'
weaverryan Aug 18, 2018
34e2cd2
Merge branch '4.1'
weaverryan Aug 28, 2018
4eefc0b
Merge branch '4.1'
xabbuh Aug 30, 2018
1468994
Merge branch '4.1'
javiereguiluz Sep 4, 2018
7ccf603
Reworded and added the versionadded directive
javiereguiluz Sep 4, 2018
f09780d
minor #10122 Update translator fallback example to include ICU parent…
javiereguiluz Sep 4, 2018
02cc739
Minor reword
javiereguiluz Sep 4, 2018
2a21457
minor #10108 [Routing] Add locale fallback to internationalized route…
javiereguiluz Sep 4, 2018
f8a3c0d
Update dotenv.rst
fmata Sep 4, 2018
38e4f08
Reword
javiereguiluz Sep 4, 2018
302206a
minor #9568 Document the DotEnv::overload() method (fmata, javieregui…
javiereguiluz Sep 4, 2018
3270cca
Document the DivisibleBy constraint
colinodell Jul 26, 2018
4763b7b
Added docs for cookie_samesite option
javiereguiluz Sep 5, 2018
5e3eb41
minor #10258 Added docs for cookie_samesite option (javiereguiluz)
javiereguiluz Sep 5, 2018
bb5ab52
Fixed the default value of cookie_samesite
javiereguiluz Sep 5, 2018
9e00412
minor #10260 Fixed the default value of cookie_samesite (javiereguiluz)
javiereguiluz Sep 5, 2018
1026020
Documenting debug:twig command
yceruto Aug 28, 2018
3800041
minor #10232 Documenting debug:twig command (yceruto)
javiereguiluz Sep 6, 2018
40f1961
Minor reword
javiereguiluz Sep 6, 2018
acca007
minor #10121 [Validator] Document the DivisibleBy constraint (colinod…
javiereguiluz Sep 6, 2018
3e215a9
Merge branch '4.1'
javiereguiluz Sep 7, 2018
25607ad
Merge branch '4.1'
javiereguiluz Sep 7, 2018
20511e8
Add Lock's PdoStore documentation
jderusse Jun 4, 2018
58e4446
minor #9875 Add Lock's PdoStore documentation (jderusse)
javiereguiluz Sep 7, 2018
984c3ef
Minor fixes
javiereguiluz Sep 7, 2018
3924e18
Added docs for VAR_DUMPER_FORMAT
javiereguiluz Sep 7, 2018
af62658
Documented the "auto" mode of "cookie_secure"
javiereguiluz Sep 7, 2018
f3e8f0e
[WCM][Console] Remove mentions about the deprecated ContainerAwareCom…
chalasr Sep 9, 2018
a6b0c60
minor #10284 Documented the "auto" mode of "cookie_secure" (javieregu…
javiereguiluz Sep 10, 2018
5b152cf
minor #10275 Added docs for VAR_DUMPER_FORMAT (javiereguiluz)
javiereguiluz Sep 10, 2018
0e8b06a
Added a missing reference to fix doc build
javiereguiluz Sep 10, 2018
4143835
Maintained a note about ContainerAwareCommand being deprecated
javiereguiluz Sep 10, 2018
b89bbca
minor #10307 [Console] Remove mentions about the deprecated Container…
javiereguiluz Sep 10, 2018
8a88478
Added another missing reference to fix doc build
javiereguiluz Sep 10, 2018
1f87e0c
[PropertyInfo] Inject the entity manager instead of the class metadat…
dunglas Sep 10, 2018
5e0a91e
[Serializer] Allow to pass a single value for the groups opt
dunglas Sep 10, 2018
fb3b7bd
Merge branch '4.1'
javiereguiluz Sep 10, 2018
ca5e2e0
[Serializer] Allow to access extra infos in name converters
dunglas Sep 10, 2018
a4dad43
[Serializer] Allow to access to the context and various other infos i…
dunglas Sep 10, 2018
7c3e620
Fix, and document setCircularReferenceHandler's new parameters
dunglas Sep 10, 2018
ae63f8a
Add a note block
dunglas Sep 10, 2018
f7ed144
[PropertyInfo] Add an extractor to guess if a property is initializable
dunglas Sep 10, 2018
eebca4a
RST
dunglas Sep 10, 2018
8415f96
Minor tweaks
javiereguiluz Sep 11, 2018
5bc7ac0
minor #10319 [PropertyInfo] Add an extractor to guess if a property i…
javiereguiluz Sep 11, 2018
672b374
Minor reword
javiereguiluz Sep 11, 2018
97c4e68
minor #10318 [Serializer] Allow to access to the context and various …
javiereguiluz Sep 11, 2018
71afdca
Minor reword
javiereguiluz Sep 11, 2018
0907554
minor #10317 [Serializer] Allow to access extra infos in name convert…
javiereguiluz Sep 11, 2018
e4eae25
Replaced a "note" by a "tip"
javiereguiluz Sep 11, 2018
ae558f4
Added the missing versionadded directive
javiereguiluz Sep 11, 2018
fd0ce36
minor #10312 [Serializer] Allow to pass a single value for the groups…
javiereguiluz Sep 11, 2018
44df1a7
Added the missing versionadded directive
javiereguiluz Sep 11, 2018
09db304
minor #10311 [PropertyInfo] Inject the entity manager instead of the …
javiereguiluz Sep 11, 2018
cbb057f
Add documentation about children method in DomCrawelr
Einenlum Sep 10, 2018
2539e24
minor #10310 Add documentation about children method in DomCrawelr (E…
javiereguiluz Sep 11, 2018
e08cac0
Merge branch '4.1'
javiereguiluz Sep 11, 2018
324ad72
Added docs for different protocols as asset base_url
alexander-schranz Sep 15, 2018
2ba70f0
Add docs for Zookeeper Data Store.
GaneshChandrasekaran-zz Jul 8, 2018
16c0ee7
Merge branch '4.1'
javiereguiluz Sep 17, 2018
719526e
#10360 disable DebugClassLoader doc
MarioBlazek Sep 19, 2018
1513f22
Added support for multiple files or directories
yceruto Sep 19, 2018
a5546a6
adding missing "or"
yceruto Sep 19, 2018
5657303
Added support for multiple files or directories
yceruto Sep 19, 2018
e68d242
typo
yceruto Sep 20, 2018
6cf8bef
typo
yceruto Sep 20, 2018
e4494bd
Added the versionadded directive
javiereguiluz Sep 21, 2018
c63cd6c
minor #10368 [Translation] Added support for multiple files or direct…
javiereguiluz Sep 21, 2018
23f6465
Added the versionadded directive
javiereguiluz Sep 21, 2018
aec2882
minor #10367 [Yaml] Documenting support for multiple files or directo…
javiereguiluz Sep 21, 2018
6218472
minor #10043 Add documentation for using Zookeeper data store for loc…
javiereguiluz Sep 21, 2018
ae20f9d
Minor tweaks
javiereguiluz Sep 21, 2018
79a29c8
Fix typo
IndraGunawan Sep 21, 2018
bc0c51a
minor #10375 [Lock] Fix typo (IndraGunawan)
javiereguiluz Sep 24, 2018
9f39fd7
Merge branch '4.1'
javiereguiluz Sep 24, 2018
b0a1878
Merge branch '4.1'
javiereguiluz Sep 24, 2018
d4310d9
Merge branch '4.1'
javiereguiluz Sep 24, 2018
d70a0a6
Deprecated not passing the root node name to config tree builders
javiereguiluz Sep 24, 2018
eea8c4c
Documented the binding of arguments by name and type
javiereguiluz Sep 24, 2018
00db5a3
Documented the setColumnMaxWidth() method
javiereguiluz Sep 24, 2018
2617a7a
minor #10388 Deprecated not passing the root node name to config tree…
javiereguiluz Sep 25, 2018
75a1fd8
minor #10391 Documented the binding of arguments by name and type (ja…
javiereguiluz Sep 25, 2018
04cc519
minor #10394 Documented the setColumnMaxWidth() method (javiereguiluz)
javiereguiluz Sep 25, 2018
e29c5b1
Documented the setHeaderTitle() and setFooterTitle() methods
javiereguiluz Sep 24, 2018
b911d15
minor #10392 Documented the setHeaderTitle() and setFooterTitle() met…
javiereguiluz Sep 25, 2018
ac2ea07
[Form] Deprecate searchAndRenderBlock returning empty string
javiereguiluz Sep 24, 2018
a3db105
minor #10387 [Form] Deprecate searchAndRenderBlock returning empty st…
javiereguiluz Sep 25, 2018
eee1eaa
Documented the new date_label and time_label options
javiereguiluz Sep 24, 2018
a7c30bb
minor #10389 Documented the new date_label and time_label options (ja…
javiereguiluz Sep 25, 2018
d4b2c99
Merge branch '4.1'
javiereguiluz Sep 27, 2018
06dbeb5
Merge branch '4.1'
javiereguiluz Sep 28, 2018
95494c5
Merge branch '4.1'
javiereguiluz Sep 29, 2018
9d50c77
document metadata aware name conversion
fbourigault Oct 1, 2018
0fdbdbb
Update framework.rst
lexcast Oct 2, 2018
cd0a4df
Merge branch '4.1'
xabbuh Oct 2, 2018
94924b7
Merge branch '4.1'
xabbuh Oct 2, 2018
8213714
minor #10424 Mention vscode on IDE config (lexcast)
javiereguiluz Oct 2, 2018
6349bd3
[Serializer] Add an option to skip null values
dunglas Oct 2, 2018
9e6cab0
minor #10427 [Serializer] Add an option to skip null values (dunglas)
javiereguiluz Oct 3, 2018
d2907db
Merge branch '4.1'
javiereguiluz Oct 3, 2018
b142f57
Document the port in access_control
Sep 18, 2018
77e3522
Add deprecation notice for --env and --no-debug
hiddewie Oct 7, 2018
47b5917
Remove \DateTimeInterface reference from constraint validators
ro0NL Sep 8, 2018
dcdef65
minor #10302 Remove \DateTimeInterface reference from constraint vali…
javiereguiluz Oct 8, 2018
f324a71
Wrapped some long lines
javiereguiluz Oct 8, 2018
a22bfc4
Merge branch '4.1'
javiereguiluz Oct 8, 2018
71f96f1
Merge branch '4.1'
javiereguiluz Oct 8, 2018
6b40fb5
Add option for configuring default UTF-8 encoding for routes
hiddewie Oct 9, 2018
d156bfc
Merge branch '4.1'
javiereguiluz Oct 10, 2018
21baaa5
Updated the form type extension article
javiereguiluz Oct 10, 2018
fbe9b73
minor #10468 Updated the form type extension article (javiereguiluz)
javiereguiluz Oct 10, 2018
48e8872
Merge branch '4.1'
javiereguiluz Oct 10, 2018
b313c78
Merge branch '4.1'
javiereguiluz Oct 10, 2018
abb5189
Documenting Options argument for closure deprecation func
yceruto Oct 5, 2018
a243b64
Merge branch '4.1'
javiereguiluz Oct 11, 2018
8dd19fa
minor #10359 [Security] - Document the port in access_control (roukmo…
javiereguiluz Oct 11, 2018
8531ef7
Minor reword
javiereguiluz Oct 11, 2018
82980e1
minor #10439 [OptionsResolver] Documenting Options argument for closu…
javiereguiluz Oct 12, 2018
de957f7
minor #10445 Add deprecation notice for --env and --no-debug (hiddewie)
javiereguiluz Oct 12, 2018
8299066
Minor reword
javiereguiluz Oct 12, 2018
7f19b26
Merge branch '4.1'
javiereguiluz Oct 12, 2018
663f2ea
[Monolog] Move ProcessorInterface to Monolog
ogizanagi Oct 13, 2018
e56793b
Merge branch '4.1'
javiereguiluz Oct 15, 2018
2814fea
Add some lines of doc for waitUntil() (Process)
Nek- Oct 15, 2018
d93c515
minor #10492 Add some lines of doc for waitUntil() (Process) (Nek-)
javiereguiluz Oct 16, 2018
28958d5
Minor reword
javiereguiluz Oct 16, 2018
bb4861b
Add some notes about trigger deprecation
yceruto Oct 16, 2018
c19e78d
Added docs for LDAP user provider with default (null) values
hiddewie Oct 7, 2018
f70d243
minor #10443 Added docs for LDAP user provider with default (null) va…
javiereguiluz Oct 16, 2018
69cb1d4
Minor reword
javiereguiluz Oct 16, 2018
5d5da2f
Merge branch '4.1'
javiereguiluz Oct 16, 2018
a90ae14
Deprecating support for legacy templates directory
yceruto Oct 16, 2018
d3c31d7
Merge branch '4.1'
weaverryan Oct 18, 2018
f6162bc
[FormType] Add help_attr documentation
mpiot Oct 18, 2018
da5aa3b
minor #10511 [FormType] Add help_attr documentation (mpiot)
javiereguiluz Oct 18, 2018
fb22cef
Minor reword
javiereguiluz Oct 18, 2018
a97dc74
Fixed a minor code issue
javiereguiluz Oct 19, 2018
707956b
Merge branch '4.1'
javiereguiluz Oct 19, 2018
d8f2433
Merge branch '4.1'
javiereguiluz Oct 19, 2018
b43a26f
Merge branch '4.1'
javiereguiluz Oct 19, 2018
112d1d2
Merge branch '4.1'
javiereguiluz Oct 23, 2018
9be63a9
Merge branch '4.1'
javiereguiluz Oct 23, 2018
73d241a
Merge branch '4.1'
javiereguiluz Oct 23, 2018
da88167
minor #10500 Deprecating support for legacy templates directory (ycer…
javiereguiluz Oct 23, 2018
4665f42
Minor reword
javiereguiluz Oct 23, 2018
0abd108
Merge branch '4.1'
javiereguiluz Oct 23, 2018
62c1d4c
Merge branch '4.1'
javiereguiluz Oct 24, 2018
91c0c22
Merge branch '4.1'
javiereguiluz Oct 24, 2018
992fd08
Mentioned the deprecation of kernel.root_dir
javiereguiluz Oct 24, 2018
29b7fda
minor #10547 Mentioned the deprecation of kernel.root_dir (javieregui…
javiereguiluz Oct 25, 2018
b90b51e
Merge branch '4.1'
javiereguiluz Oct 25, 2018
46b6c9f
Merge branch '4.1'
javiereguiluz Oct 25, 2018
9a402c2
minor #10422 Document metadata aware name conversion (fbourigault)
javiereguiluz Oct 25, 2018
2121344
Minor reword
javiereguiluz Oct 25, 2018
2a32351
minor #10347 Added docs for different protocols as asset base_url (al…
javiereguiluz Oct 25, 2018
df318b2
Reword
javiereguiluz Oct 25, 2018
94d91c6
Mentioned the checkMX and checkHost deprecation
javiereguiluz Oct 25, 2018
4341e98
Documented the HeaderUtils::makeDisposition() method
javiereguiluz Oct 25, 2018
a1fdcc8
Deprecated the kernel.name parameter
javiereguiluz Oct 25, 2018
2a2853b
Added documentation for the Finder reverseSorting method
TimoBakx Oct 25, 2018
72a89f0
minor #10578 Mentioned the checkMX and checkHost deprecation (javiere…
javiereguiluz Oct 26, 2018
b764813
minor #10579 Documented the HeaderUtils::makeDisposition() method (ja…
javiereguiluz Oct 26, 2018
e115fed
minor #10581 Deprecated the kernel.name parameter (javiereguiluz)
javiereguiluz Oct 26, 2018
568852a
Merge branch '4.1'
javiereguiluz Oct 26, 2018
b3242f6
minor #10583 Added documentation for the Finder::reverseSorting() met…
javiereguiluz Oct 26, 2018
7c6922c
Minor tweaks
javiereguiluz Oct 26, 2018
edf7f5d
[Form] Deprecated timezone regions option
ro0NL Oct 26, 2018
d056970
Merge branch '4.1'
javiereguiluz Oct 26, 2018
b03079a
minor #10587 [Form] Deprecated timezone regions option (ro0NL)
javiereguiluz Oct 26, 2018
8ac17be
Moved the versionadded directive
javiereguiluz Oct 26, 2018
e350b3e
Merge branch '4.1'
javiereguiluz Oct 26, 2018
690ff93
Deprecating support for legacy translations directory
yceruto Oct 27, 2018
48b1fec
Fixes var name in callback
mauricesvay Oct 27, 2018
d710c88
minor #10594 Fixes var name in callback (mauricesvay)
javiereguiluz Oct 29, 2018
aed3177
minor #10592 Deprecating support for legacy translations directory (y…
javiereguiluz Oct 29, 2018
b0bccfe
Minor reword
javiereguiluz Oct 29, 2018
de52062
Merge branch '4.1'
javiereguiluz Oct 29, 2018
f274236
Added the versionadded directives
javiereguiluz Oct 29, 2018
cec2841
Minor table layout fix
TimoBakx Oct 29, 2018
cecc740
minor #10597 Minor table layout fix (TimoBakx)
javiereguiluz Oct 29, 2018
938cdaa
minor #10364 [PHPUnitBridge] Describes how to disable DebugClassLoade…
javiereguiluz Oct 29, 2018
d3c8438
Minor reword
javiereguiluz Oct 29, 2018
b629aa1
minor #10462 Add option for configuring default UTF-8 encoding for ro…
javiereguiluz Oct 30, 2018
e8b0c11
Reword
javiereguiluz Oct 30, 2018
6bd0f0f
Merge branch '4.1'
javiereguiluz Oct 30, 2018
28bd6e3
Merge branch '4.1'
javiereguiluz Oct 30, 2018
fb0e73a
Merge branch '4.1'
javiereguiluz Oct 31, 2018
b873a4c
Merge branch '4.1'
javiereguiluz Oct 31, 2018
4fc5a88
Merge branch '4.1'
javiereguiluz Oct 31, 2018
26817be
Documented the addLink() shortcut
javiereguiluz Oct 31, 2018
0e697b2
minor #10621 Documented the addLink() shortcut (javiereguiluz)
javiereguiluz Oct 31, 2018
5cfff41
Merge branch '4.1'
javiereguiluz Oct 31, 2018
3edbcad
Merge branch '4.1'
javiereguiluz Oct 31, 2018
d53074d
Merge branch '4.1'
javiereguiluz Nov 5, 2018
14edeb0
Merge branch '4.1'
weaverryan Nov 5, 2018
bc2d533
Merge branch '4.1'
javiereguiluz Nov 6, 2018
c587a66
Merge branch '4.1'
javiereguiluz Nov 7, 2018
bc88b0a
minor #10483 [Monolog] Move ProcessorInterface to Monolog (ogizanagi)
javiereguiluz Nov 9, 2018
b841679
Merge branch '4.1'
javiereguiluz Nov 9, 2018
27967c2
Revert "minor #9898 [HttpFoundation] Add info for getAcceptableFormat…
kunicmarko20 Nov 10, 2018
c8c6645
[Messenger] Fix documentation after 4.2 BC Breaks
ogizanagi Nov 7, 2018
e5631f0
Update processors.rst
nicolas-grekas Nov 10, 2018
3a0a450
Update doc for Process v4.2
nicolas-grekas Nov 11, 2018
0bb5e2b
minor #10657 Revert "minor #9898 [HttpFoundation] Add info for getAcc…
xabbuh Nov 11, 2018
ec7b390
minor #10644 [Messenger] Fix documentation after 4.2 BC Breaks (ogiza…
xabbuh Nov 11, 2018
408ee2e
minor #10496 [OptionsResolver] Add some notes about trigger deprecati…
xabbuh Nov 11, 2018
a80fced
minor #10658 Update processors.rst (nicolas-grekas)
javiereguiluz Nov 12, 2018
64bda4b
Merge branch '4.1'
javiereguiluz Nov 12, 2018
1c4a8d0
Merge branch '4.1'
javiereguiluz Nov 13, 2018
db13bd9
minor #10659 Update doc for Process v4.2 (nicolas-grekas)
javiereguiluz Nov 14, 2018
f6a3bca
Minor reword
javiereguiluz Nov 14, 2018
1c588f5
Merge branch '4.1'
javiereguiluz Nov 14, 2018
1effc0a
Merge branch '4.1'
javiereguiluz Nov 15, 2018
dcc498c
[Messenger] Added handled & sent stamps
ogizanagi Nov 15, 2018
1a678d6
Merge branch '4.1'
weaverryan Nov 16, 2018
9a79ca2
updating URLs
weaverryan Nov 16, 2018
8e6fea0
minor #10677 [Messenger] Added handled & sent stamps (ogizanagi)
javiereguiluz Nov 16, 2018
512fe45
Merge branch '4.1'
javiereguiluz Nov 16, 2018
2ebb3d5
Merge branch '4.1'
javiereguiluz Nov 16, 2018
19fe210
Merge branch '4.1'
javiereguiluz Nov 22, 2018
013b69c
Merge branch '4.1'
xabbuh Nov 26, 2018
436cbd0
Merge branch '4.1'
xabbuh Nov 27, 2018
c12928f
[#10664] minor tweaks after merging into 4.2
xabbuh Nov 27, 2018
fbc4925
[#10664] minor tweaks after merging into 4.2 (bis)
ogizanagi Nov 27, 2018
69f88a3
minor #10709 [#10664] minor tweaks after merging into 4.2 (bis) (ogiz…
xabbuh Nov 27, 2018
54aa0da
Merge branch '4.1' into 4.2
javiereguiluz Nov 28, 2018
bd21549
Merge branch '4.1' into 4.2
javiereguiluz Nov 28, 2018
aa63ff6
Add deprecation message for as_collection parameter of CsvEncoder ser…
osavchenko Nov 22, 2018
0fe8709
minor #10695 [Serializer] Deprecate CsvEncoder as_collection false de…
xabbuh Nov 30, 2018
2b85af5
Merge branch '4.1' into 4.2
xabbuh Nov 30, 2018
9e3910a
Add XML encoder comment tip and docs
hiddewie Oct 8, 2018
8da7d97
minor #10453 Add XML encoder comment tip and docs (hiddewie)
xabbuh Nov 30, 2018
2086b16
Merge branch '4.1' into 4.2
xabbuh Nov 30, 2018
b89cd59
[DomCrawler] Added return of element name in `extract()` method
Nov 7, 2018
e43064e
minor #10646 [DomCrawler] Added return of element name in `extract()`…
javiereguiluz Dec 3, 2018
1310e0d
Minor reword
javiereguiluz Dec 3, 2018
9347ccb
Update the example how to fetch an envelope stamp
jakzal Dec 3, 2018
c422cbc
Use the new HandlersLocator and initialise it correctly.
j92 Dec 3, 2018
79415b8
minor #10726 Update the example how to fetch an envelope stamp (jakzal)
javiereguiluz Dec 4, 2018
ed92cd2
Merge branch '4.1' into 4.2
javiereguiluz Dec 4, 2018
92a6ada
Merge branch '4.2'
javiereguiluz Dec 4, 2018
66973ab
minor #10728 Use the new HandlersLocator and initialise it correctly.…
javiereguiluz Dec 5, 2018
3675000
Merge branch '4.2'
javiereguiluz Dec 5, 2018
c66dc3a
https://github.com/symfony/symfony-docs/issues/10729
Shoplifter Dec 6, 2018
71f0b09
revert
Shoplifter Dec 6, 2018
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
2 changes: 1 addition & 1 deletion best_practices/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ Using ``@Security``, this looks like:
* Displays a form to create a new Post entity.
*
* @Route("/new", name="admin_post_new")
* @Security("has_role('ROLE_ADMIN')")
* @Security("is_granted('ROLE_ADMIN')")
*/
public function new()
{
Expand Down
8 changes: 5 additions & 3 deletions bundles/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,9 @@ The ``Configuration`` class to handle the sample configuration looks like::
{
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('acme_social');
$treeBuilder = new TreeBuilder('acme_social');

$rootNode
$treeBuilder->getRootNode()
->children()
->arrayNode('twitter')
->children()
Expand All @@ -198,6 +197,9 @@ The ``Configuration`` class to handle the sample configuration looks like::
}
}

.. versionadded:: 4.2
Not passing the root node name to ``TreeBuilder`` was deprecated in Symfony 4.2.

.. seealso::

The ``Configuration`` class can be much more complicated than shown here,
Expand Down
29 changes: 29 additions & 0 deletions components/asset.rst
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,35 @@ document inside a template::
echo $packages->getUrl('resume.pdf', 'doc');
// result: /somewhere/deep/for/documents/resume.pdf?v1

Local Files and Other Protocols
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. versionadded:: 4.2
The support for other protocols was introduced in Symfony 4.2.

In addition to HTTP this component supports other protocols (such as ``file://``
and ``ftp://``). This allows for example to serve local files in order to
improve performance::

use Symfony\Component\Asset\UrlPackage;
// ...

$localPackage = new UrlPackage(
'file:///path/to/images/',
new EmptyVersionStrategy()
);

$ftpPackage = new UrlPackage(
'ftp://example.com/images/',
new EmptyVersionStrategy()
);

echo $localPackage->getUrl('/logo.png');
// result: file:///path/to/images/logo.png

echo $ftpPackage->getUrl('/logo.png');
// result: ftp://example.com/images/logo.png

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

Expand Down
63 changes: 49 additions & 14 deletions components/browser_kit.rst
Original file line number Diff line number Diff line change
Expand Up @@ -97,42 +97,77 @@ make AJAX requests::
Clicking Links
~~~~~~~~~~~~~~

The ``Crawler`` object is capable of simulating link clicks. First, pass the
text content of the link to the ``selectLink()`` method, which returns a
``Link`` object. Then, pass this object to the ``click()`` method, which
performs the needed HTTP GET request to simulate the link click::
The ``Client`` object is capable of simulating link clicks. Pass the text
content of the link and the client will perform the needed HTTP GET request to
simulate the link click::

use Acme\Client;

$client = new Client();
$client->request('GET', '/product/123');

$crawler = $client->clickLink('Go elsewhere...');

.. versionadded:: 4.2
The ``clickLink()`` method was introduced in Symfony 4.2.

If you need the :class:`Symfony\\Component\\DomCrawler\\Link` object that
provides access to the link properties (e.g. ``$link->getMethod()``,
``$link->getUri()``), use this other method:

// ...
$crawler = $client->request('GET', '/product/123');
$link = $crawler->selectLink('Go elsewhere...')->link();
$client->click($link);

Submitting Forms
~~~~~~~~~~~~~~~~

The ``Crawler`` object is also capable of selecting forms. First, select any of
the form's buttons with the ``selectButton()`` method. Then, use the ``form()``
method to select the form which the button belongs to.

After selecting the form, fill in its data and send it using the ``submit()``
method (which makes the needed HTTP POST request to submit the form contents)::
The ``Client`` object is also capable of submitting forms. First, select the
form using any of its buttons and then override any of its properties (method,
field values, etc.) before submitting it::

use Acme\Client;

// make a real request to an external site
$client = new Client();
$crawler = $client->request('GET', 'https://github.com/login');

// find the form with the 'Log in' button and submit it
// 'Log in' can be the text content, id, value or name of a <button> or <input type="submit">
$client->submitForm('Log in');

// the second optional argument lets you override the default form field values
$client->submitForm('Log in', array(
'login' => 'my_user',
'password' => 'my_pass',
// to upload a file, the value must be the absolute file path
'file' => __FILE__,
));

// you can override other form options too
$client->submitForm(
'Log in',
array('login' => 'my_user', 'password' => 'my_pass'),
// override the default form HTTP method
'PUT',
// override some $_SERVER parameters (e.g. HTTP headers)
array('HTTP_ACCEPT_LANGUAGE' => 'es')
);

.. versionadded:: 4.2
The ``submitForm()`` method was introduced in Symfony 4.2.

If you need the :class:`Symfony\\Component\\DomCrawler\\Form` object that
provides access to the form properties (e.g. ``$form->getUri()``,
``$form->getValues()``, ``$form->getFields()``), use this other method::

// ...

// select the form and fill in some values
$form = $crawler->selectButton('Log in')->form();
$form['login'] = 'symfonyfan';
$form['password'] = 'anypass';

// To upload a file, the value should be the absolute file path
$form['file'] = __FILE__;

// submit that form
$crawler = $client->submit($form);

Expand Down
9 changes: 9 additions & 0 deletions components/cache/adapters/pdo_doctrine_dbal_adapter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@ third, and forth parameters::
$options = array()
);

.. versionadded:: 4.2
Automatic table creation was introduced in Symfony 4.2.

The table where values are stored is created automatically on the first call to
the :method:`Symfony\\Component\\Cache\\Adapter\\PdoAdapter::save` method.
You can also create this table explicitly by calling the
:method:`Symfony\\Component\\Cache\\Adapter\\PdoAdapter::createTable` method in
your code.

.. tip::

When passed a `Data Source Name (DSN)`_ string (instead of a database connection
Expand Down
11 changes: 11 additions & 0 deletions components/cache/adapters/redis_adapter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,11 @@ array of ``key => value`` pairs representing option names and their respective v

// associative array of configuration options
array(
'compression' => true,
'lazy' => false,
'persistent' => 0,
'persistent_id' => null,
'tcp_keepalive' => 0,
'timeout' => 30,
'read_timeout' => 0,
'retry_interval' => 0,
Expand All @@ -114,6 +116,10 @@ Available Options
If none is specified, it will return ``\Redis`` if the ``redis`` extension is
available, and ``\Predis\Client`` otherwise.

``compression`` (type: ``bool``, default: ``true``)
Enables or disables compression of items. This requires phpredis v4 or higher with
LZF support enabled.

``lazy`` (type: ``bool``, default: ``false``)
Enables or disables lazy connections to the backend. It's ``false`` by
default when using this as a stand-alone component and ``true`` by default
Expand All @@ -134,6 +140,10 @@ Available Options
Specifies the delay (in milliseconds) between reconnection attempts in case the client
loses connection with the server.

``tcp_keepalive`` (type: ``int``, default: ``0``)
Specifies the `TCP-keepalive`_ timeout (in seconds) of the connection. This
requires phpredis v4 or higher and a TCP-keepalive enabled server.

``timeout`` (type: ``int``, default: ``30``)
Specifies the time (in seconds) used to connect to a Redis server before the
connection attempt times out.
Expand All @@ -149,3 +159,4 @@ Available Options
.. _`RedisCluster`: https://github.com/phpredis/phpredis/blob/master/cluster.markdown#readme
.. _`Predis`: https://packagist.org/packages/predis/predis
.. _`Predis Connection Parameters`: https://github.com/nrk/predis/wiki/Connection-Parameters#list-of-connection-parameters
.. _`TCP-keepalive`: https://redis.io/topics/clients#tcp-keepalive
22 changes: 11 additions & 11 deletions components/config/definition.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,18 @@ implements the :class:`Symfony\\Component\\Config\\Definition\\ConfigurationInte
{
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('database');
$treeBuilder = new TreeBuilder('database');

// ... add node definitions to the root of the tree
// $treeBuilder->getRootNode()->...

return $treeBuilder;
}
}

.. versionadded:: 4.2
Not passing the root node name to ``TreeBuilder`` was deprecated in Symfony 4.2.

Adding Node Definitions to the Tree
-----------------------------------

Expand Down Expand Up @@ -534,10 +537,9 @@ tree with ``append()``::

public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('database');
$treeBuilder = new TreeBuilder('database');

$rootNode
$treeBuilder->getRootNode()
->children()
->arrayNode('connection')
->children()
Expand All @@ -564,10 +566,9 @@ tree with ``append()``::

public function addParametersNode()
{
$treeBuilder = new TreeBuilder();
$node = $treeBuilder->root('parameters');
$treeBuilder = new TreeBuilder('parameters');

$node
$treeBuilder->getRootNode()
->isRequired()
->requiresAtLeastOneElement()
->useAttributeAsKey('name')
Expand Down Expand Up @@ -795,10 +796,9 @@ Configuring the Node Path Separator

Consider the following config builder example::

$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('database');
$treeBuilder = new TreeBuilder('database');

$rootNode
$treeBuilder->getRootNode()
->children()
->arrayNode('connection')
->children()
Expand Down
63 changes: 56 additions & 7 deletions components/console/helpers/table.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,29 @@ You can add a table separator anywhere in the output by passing an instance of
| 80-902734-1-6 | And Then There Were None | Agatha Christie |
+---------------+--------------------------+------------------+

You can optionally display titles at the top and the bottom of the table::

// ...
$table->setHeaderTitle('Books')
$table->setFooterTitle('Page 1/2')
$table->render();

.. code-block:: terminal

+---------------+----------- Books --------+------------------+
| ISBN | Title | Author |
+---------------+--------------------------+------------------+
| 99921-58-10-7 | Divine Comedy | Dante Alighieri |
| 9971-5-0210-0 | A Tale of Two Cities | Charles Dickens |
+---------------+--------------------------+------------------+
| 960-425-059-0 | The Lord of the Rings | J. R. R. Tolkien |
| 80-902734-1-6 | And Then There Were None | Agatha Christie |
+---------------+--------- Page 1/2 -------+------------------+

.. versionadded:: 4.2
The ``setHeaderTitle()`` and ``setFooterTitle()`` methods were introduced
in Symfony 4.2.

By default the width of the columns is calculated automatically based on their
contents. Use the :method:`Symfony\\Component\\Console\\Helper\\Table::setColumnWidths`
method to set the column widths explicitly::
Expand All @@ -76,7 +99,19 @@ method to set the column widths explicitly::

In this example, the first column width will be ``10``, the last column width
will be ``30`` and the second column width will be calculated automatically
because of the ``0`` value. The output of this command will be:
because of the ``0`` value.

You can also set the width individually for each column with the
:method:`Symfony\\Component\\Console\\Helper\\Table::setColumnWidth` method.
Its first argument is the column index (starting from ``0``) and the second
argument is the column width::

// ...
$table->setColumnWidth(0, 10);
$table->setColumnWidth(2, 30);
$table->render();

The output of this command will be:

.. code-block:: terminal

Expand All @@ -95,16 +130,30 @@ widths. If the contents don't fit, the given column width is increased up to the
longest content length. That's why in the previous example the first column has
a ``13`` character length although the user defined ``10`` as its width.

You can also set the width individually for each column with the
:method:`Symfony\\Component\\Console\\Helper\\Table::setColumnWidth` method.
Its first argument is the column index (starting from ``0``) and the second
argument is the column width::
If you prefer to wrap long contents in multiple rows, use the
:method:`Symfony\\Component\\Console\\Helper\\Table::setColumnMaxWidth` method::

// ...
$table->setColumnWidth(0, 10);
$table->setColumnWidth(2, 30);
$table->setColumnMaxWidth(0, 5);
$table->setColumnMaxWidth(1, 10);
$table->render();

The output of this command will be:

.. code-block:: terminal

+-------+------------+--------------------------------+
| ISBN | Title | Author |
+-------+------------+--------------------------------+
| 99921 | Divine Com | Dante Alighieri |
| -58-1 | edy | |
| 0-7 | | |
| (the rest of rows...) |
+-------+------------+--------------------------------+

.. versionadded:: 4.2
The ``setColumnMaxWidth()`` method was introduced in Symfony 4.2.

The table style can be changed to any built-in styles via
:method:`Symfony\\Component\\Console\\Helper\\Table::setStyle`::

Expand Down
15 changes: 13 additions & 2 deletions components/dom_crawler.rst
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,13 @@ Get all the child or parent nodes::
$crawler->filter('body')->children();
$crawler->filter('body > p')->parents();

Get all the direct child nodes matching a CSS selector::

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

.. versionadded:: 4.2
The optional selector in ``children($selector)`` method was introduced in Symfony 4.2.

.. note::

All the traversal methods return a new :class:`Symfony\\Component\\DomCrawler\\Crawler`
Expand All @@ -207,12 +214,16 @@ Extract attribute and/or node values from the list of nodes::

$attributes = $crawler
->filterXpath('//body/p')
->extract(array('_text', 'class'))
->extract(array('_name', '_text', 'class'))
;

.. note::

Special attribute ``_text`` represents a node value.
Special attribute ``_text`` represents a node value, while ``_name``
represents the element name (the HTML tag name).

.. versionadded:: 4.3
The special attribute ``_name`` was introduced in Symfony 4.3.

Call an anonymous function on each node of the list::

Expand Down
Loading