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

Appearance settings

Add a warning about routes parameters names limitations #7133

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 1,209 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
1209 commits
Select commit Hold shift + click to select a range
b9ebf03
after merge fixes
xabbuh Jul 20, 2016
8ae23dc
minor #109 after merge fixes (xabbuh)
xabbuh Jul 20, 2016
7ea1141
Merge branch '3.0' into 3.1
xabbuh Jul 20, 2016
fb27875
Merge branch '3.1'
xabbuh Jul 20, 2016
3f2f7b3
Merge branch '2.8' into 3.0
xabbuh Jul 20, 2016
e2c36a7
Merge branch '3.0' into 3.1
xabbuh Jul 20, 2016
d6ec754
Merge branch '3.1'
xabbuh Jul 20, 2016
9fb9fa8
Merge remote-tracking branch 'mercury/2.8' into 2.8
xabbuh Jul 20, 2016
d782d83
Merge branch '2.7' into 2.8
xabbuh Jul 20, 2016
088955b
Merge remote-tracking branch 'mercury/3.0' into 3.0
xabbuh Jul 21, 2016
912bc74
Merge branch '2.8' into 3.0
xabbuh Jul 21, 2016
8d984d8
Merge remote-tracking branch 'mercury/3.1' into 3.1
xabbuh Jul 21, 2016
148a713
Merge branch '3.0' into 3.1
xabbuh Jul 21, 2016
8204b4f
Merge remote-tracking branch 'mercury/master'
xabbuh Jul 21, 2016
1b532b1
Merge branch '3.1'
xabbuh Jul 21, 2016
c395c74
Merge branch '2.7' into 2.8
xabbuh Jul 28, 2016
19cc445
Merge branch '2.8' into 3.0
xabbuh Jul 28, 2016
8594d98
Merge branch '3.0' into 3.1
xabbuh Jul 28, 2016
299d3b4
Merge branch '3.1'
xabbuh Jul 28, 2016
2611798
Simplex\Framework - add argumentResolver property
alchimik Jul 30, 2016
fb24c74
minor #6748 Fix web/front.php (ranqiangjun)
weaverryan Aug 2, 2016
8d60d5c
fixed missing level in namespace
themasch Jul 21, 2016
c2c4bf8
bug #6761 fixed missing level in namespace (themasch)
weaverryan Aug 2, 2016
732bb33
Merge branch '2.7' into 2.8
weaverryan Aug 2, 2016
bbb72b4
Merge branch '2.8' into 3.0
weaverryan Aug 2, 2016
03ce45f
Merge branch '3.0' into 3.1
weaverryan Aug 2, 2016
b97d442
Merge branch '3.1'
weaverryan Aug 2, 2016
396cf06
update `cache` and `logs` folder locations
georgiana-gligor Aug 2, 2016
fa57021
minor #6825 update `cache` and `logs` folder locations (georgiana-gli…
wouterj Aug 4, 2016
b92f305
bug #6793 Simplex\Framework - add argumentResolver property (alchimik)
wouterj Aug 4, 2016
c5a4ea3
Simplex\Framework contructor - extra parameter
alchimik Jul 30, 2016
e00c866
bug #6790 Simplex\Framework contructor - remove extra parameter (alch…
wouterj Aug 4, 2016
21fcb72
custom error pages - Reference to security functions warning is no mo…
hvt Jul 27, 2016
e051e98
minor #6850 Remove outdated reference (hvt)
wouterj Aug 5, 2016
d6c8a2e
Merge branch '2.7' into 2.8
wouterj Aug 5, 2016
6e7a7cb
Merge branch '2.8' into 3.0
wouterj Aug 5, 2016
8a53e58
Merge branch '3.0' into 3.1
wouterj Aug 5, 2016
c7156e4
Merge branch '3.1'
wouterj Aug 5, 2016
e7c865e
Merge branch '2.7' into 2.8
wouterj Aug 5, 2016
4a15c8d
Added July changelog
wouterj Aug 5, 2016
0a36579
Merge branch '2.8' into 3.0
wouterj Aug 5, 2016
3ff5a22
Added July changelog
wouterj Aug 5, 2016
28d345a
Merge branch '3.0' into 3.1
wouterj Aug 5, 2016
0aba73d
Added July changelog
wouterj Aug 5, 2016
e1f83cc
Merge branch '3.1'
wouterj Aug 5, 2016
42d7888
Added July changelog
wouterj Aug 5, 2016
1a8c9ab
Fix Cache Pools: SQLite3Cache constructor argument
wimme002 Aug 5, 2016
1707db1
Update argument_value_resolver.rst
asandjivy Aug 8, 2016
d7e3c96
bug #6852 Fix Cache Pools: SQLite3Cache constructor argument (wimme002)
wouterj Aug 11, 2016
5f07a5c
bug #6863 Update argument_value_resolver.rst (asandjivy)
wouterj Aug 11, 2016
c56d5d8
Merge branch '2.7' into 2.8
wouterj Aug 11, 2016
1a3614c
Merge branch '2.8' into 3.0
wouterj Aug 11, 2016
79bd63c
Merge branch '3.0' into 3.1
wouterj Aug 11, 2016
da458d5
Merge branch '3.1'
wouterj Aug 11, 2016
cf7a0ea
Add PropertyInfo Component Documentation
Dec 5, 2015
96b139b
Suggested Changes
zanbaldwin Jul 11, 2016
7b786af
Fix Incorrect Indent
zanbaldwin Jul 11, 2016
78ea4a5
Update PropertyAccess Component Path
zanbaldwin Aug 16, 2016
a0409d7
Update Reference to Service Container Tags
zanbaldwin Aug 16, 2016
f7dad82
Merge branch '2.7' into 2.8
wouterj Aug 17, 2016
3b9db1f
Merge branch '2.8' into 3.0
wouterj Aug 17, 2016
1c8d4f1
Merge branch '3.0' into 3.1
wouterj Aug 17, 2016
a7f704c
Merge branch '3.1'
wouterj Aug 17, 2016
6d282e4
Fix typos
rendler-denis Aug 18, 2016
d8da21c
Update http_kernel_controller_resolver.rst
kostia-tarnashynskyi Aug 18, 2016
794563f
feature #5974 [PropertyInfo] Add Component Documentation (zanderbaldwin)
weaverryan Aug 20, 2016
7e296d8
[WIP] Tweaks to property info
weaverryan Aug 20, 2016
bf5188f
final tweaks
weaverryan Aug 20, 2016
fcf5e69
fixing indentation
weaverryan Aug 20, 2016
c9ea21f
bad link!
weaverryan Aug 20, 2016
bc00741
Merge branch '2.7' into 2.8
weaverryan Aug 20, 2016
a465d06
Merge branch '2.8' into 3.0
weaverryan Aug 20, 2016
0986e5e
Merge remote-tracking branch 'origin/3.0' into 3.0
weaverryan Aug 20, 2016
fc76f45
Merge branch '3.0' into 3.1
weaverryan Aug 20, 2016
c04ac56
Merge branch '3.1'
weaverryan Aug 20, 2016
d63a2f2
minor #6887 [FormComponent] Fix typos (rendler-denis)
weaverryan Aug 21, 2016
795ca15
minor #6888 Update http_kernel_controller_resolver.rst (audiua)
weaverryan Aug 21, 2016
2d5b420
Update custom_provider.rst
asandjivy Aug 19, 2016
f11f34b
bug #6892 Update custom_provider.rst (asandjivy)
weaverryan Aug 21, 2016
563bab8
Merge branch '2.7' into 2.8
weaverryan Aug 21, 2016
98e65bf
Merge branch '2.8' into 3.0
weaverryan Aug 21, 2016
d7585ee
Merge branch '3.0' into 3.1
weaverryan Aug 21, 2016
626ab4f
Merge branch '3.1'
weaverryan Aug 21, 2016
081c2d6
minor #6896 Tweaks to property info component (weaverryan)
weaverryan Aug 21, 2016
09ecf5f
Add deprecation warnings to relevant profiler options
jameshalsall Aug 23, 2016
5aeec90
feature #6908 Add deprecation warnings to relevant profiler options (…
wouterj Aug 26, 2016
5a9865f
[#6908] Add deprecations on some other places as well
wouterj Aug 26, 2016
0fffa1c
Merge branch '2.7' into 2.8
wouterj Aug 26, 2016
dadb75c
Merge branch '2.8' into 3.0
wouterj Aug 26, 2016
c084375
Remove reference to profiler lifetime property that was removed in 3.x
Aug 22, 2016
b2125c0
feature #6903 Remove reference to profiler lifetime property that was…
wouterj Aug 26, 2016
f7ba37a
Merge branch '2.7' into 2.8
wouterj Aug 28, 2016
d59b560
Merge branch '2.8' into 3.0
wouterj Aug 28, 2016
87cbecd
Merge branch '3.0' into 3.1
wouterj Aug 28, 2016
f78d06b
Merge branch '3.1'
wouterj Aug 28, 2016
f0fe739
[WCM][Config] Add ExprBuilder::ifEmpty()
ogizanagi Aug 27, 2016
299ac85
[Serializer] Add information about name converter parameter
michaelperrin Aug 29, 2016
75ed392
Add doc about unicode requirements
nicolas-grekas Aug 19, 2016
456dc05
[Guard] Improve clarity using the configured provider
chalasr Aug 24, 2016
5535c88
Updated single command How to
mickaelandrieu Aug 15, 2016
cb66d83
[VarDumper] Doc for the Data::seek() method
nicolas-grekas Aug 19, 2016
0ffc261
[Cache] Add chapter about invalidation, tags, etc.
nicolas-grekas Sep 2, 2016
2fecab5
Update tags.rst
TheBabaYaga Sep 6, 2016
3572a3d
[Filesystem] Add documentation for the readlink method
tgalopin Sep 7, 2016
9e56a2b
add back the option's description
xabbuh Sep 11, 2016
5e3b315
minor #6954 Typo fix in tags.rst (NoScopie)
xabbuh Sep 11, 2016
46825ab
[Bridge/PhpUnit] doc bin/simple-phpunit
nicolas-grekas Sep 12, 2016
c600921
Making changes thanks to Javier!
weaverryan Sep 15, 2016
b386600
feature #6962 [Bridge/PhpUnit] doc bin/simple-phpunit (nicolas-grekas…
weaverryan Sep 15, 2016
c6b4738
Update coloring.rst
SpacePossum Sep 16, 2016
f744396
Update doc about IDE file link format
nicolas-grekas Sep 1, 2016
852ce22
feature #6622 Documentation for YAML flags added in 3.1 (dantleech)
weaverryan Sep 17, 2016
20b3b37
[#6622] Fixing bad placement of anchor
weaverryan Sep 17, 2016
f2e2914
[#6622] Changing line from parse() to dump()
weaverryan Sep 17, 2016
8126206
minor #6922 [Config] Add ExprBuilder::ifEmpty() (ogizanagi)
weaverryan Sep 18, 2016
e151754
Method "$this->getMock()" is depreciated
Aug 29, 2016
db1bd1e
minor #6925 Method "$this->getMock()" is deprecated (JohnnyEvo)
weaverryan Sep 18, 2016
bba10f7
Merge branch '2.7' into 2.8
weaverryan Sep 18, 2016
78ae2a7
Merge branch '2.8' into 3.0
weaverryan Sep 18, 2016
49492b7
Merge remote-tracking branch 'origin/3.0' into 3.0
weaverryan Sep 18, 2016
7bc40da
Merge branch '3.0' into 3.1
weaverryan Sep 18, 2016
0c35a63
Update deployment.rst
adyassine Sep 20, 2016
8645262
Update input.rst
adyassine Sep 20, 2016
3682e6b
minor #6987 Update input.rst (adyassine)
xabbuh Sep 21, 2016
0878b32
minor #6960 [Reference] add back the option's description (xabbuh)
xabbuh Sep 21, 2016
79bc283
Callback doesn't have to be static
patrick-mcdougle Sep 17, 2016
649ee61
feature #6973 Callback doesn't have to be static (patrick-mcdougle)
xabbuh Sep 21, 2016
2182353
feature #6956 [Filesystem] Add documentation for the readlink method …
xabbuh Sep 21, 2016
021e3d7
feature #6968 [Console] Add multiple options for the output example (…
xabbuh Sep 21, 2016
f58526e
feature #6944 Update doc about IDE file link format (nicolas-grekas)
xabbuh Sep 21, 2016
ca53cb5
Use the standard cache and logs dir for the micro kernel example
javiereguiluz Aug 31, 2016
7be8b3f
minor #6935 Use the standard cache and logs dir for the micro kernel …
xabbuh Sep 21, 2016
4f89612
replace dirname() call with ..
xabbuh Sep 21, 2016
fa8d09f
minor #6931 [Guard] Improve clarity using the configured provider (ch…
xabbuh Sep 21, 2016
e9ce9ec
feature #6890 [Routing] Add doc about unicode requirements (nicolas-g…
xabbuh Sep 21, 2016
3baba73
[#6890] double backticks for enclose inlined code
xabbuh Sep 21, 2016
730686f
feature #6891 [VarDumper] Doc for the Data::seek() method (nicolas-gr…
xabbuh Sep 21, 2016
d64c19b
[#6891] move the versionadded directive
xabbuh Sep 21, 2016
3033bc7
[VarDumper] Adding semantics with metadata
nicolas-grekas Sep 2, 2016
cb50d14
feature #6926 [Serializer] Add information about name converter param…
xabbuh Sep 21, 2016
c4e46d8
[#6926] some tweaks after review
xabbuh Sep 21, 2016
80e84b9
Update voters.rst
asandjivy Aug 21, 2016
a8305b5
minor #6897 Update voters.rst (asandjivy)
xabbuh Sep 21, 2016
b5fe1b4
[#6897] some tweaks after review
xabbuh Sep 21, 2016
e1c55d0
Added paths options in Framework::translator configuration
mickaelandrieu Sep 21, 2016
7620abf
feature #6989 Added paths options in Framework::translator configurat…
xabbuh Sep 21, 2016
6f50d90
[#6989] some minor tweaks
xabbuh Sep 21, 2016
469d611
versionadded directive for name_converter option
xabbuh Sep 21, 2016
5c146d8
Update heroku.rst
adyassine Sep 21, 2016
762a00e
minor #6991 Update heroku.rst (adyassine)
xabbuh Sep 21, 2016
b032584
Merge branch '2.7' into 2.8
xabbuh Sep 21, 2016
6cb57d2
Merge branch '2.8' into 3.1
xabbuh Sep 21, 2016
f68f046
Merge branch '3.1'
xabbuh Sep 21, 2016
aa66771
[Reference] remove 2.8 versionadded directive
xabbuh Sep 21, 2016
d9481d8
fix reference syntax
xabbuh Sep 22, 2016
9eb60f3
minor #6996 fix reference syntax (xabbuh)
xabbuh Sep 22, 2016
7ea70c8
[Debug] Added configuration reference for new debug options
lyrixx Aug 12, 2016
a1dfcc5
Merge branch '2.8' into 3.1
xabbuh Sep 22, 2016
918d5c2
Merge branch '3.1'
xabbuh Sep 22, 2016
4f67cd7
minor #6984 Update deployment.rst (adyassine)
xabbuh Sep 22, 2016
618a1b1
minor #6994 [Reference] remove 2.8 versionadded directive (xabbuh)
xabbuh Sep 22, 2016
bdbb305
Update create_custom_field_type.rst
yceruto Sep 21, 2016
0f7e857
minor #6993 Update create_custom_field_type.rst (yceruto)
xabbuh Sep 22, 2016
13cff5b
Merge branch '2.7' into 2.8
xabbuh Sep 22, 2016
e22115e
Merge branch '2.8' into 3.1
xabbuh Sep 22, 2016
09975d7
Merge branch '3.1'
xabbuh Sep 22, 2016
e45779a
Several typo fixes
emirb Sep 22, 2016
7340268
Several typo fixes
emirb Sep 22, 2016
70d2dac
minor #7000 Several typo fixes (emirb)
xabbuh Sep 22, 2016
7de9f36
Merge branch '2.7' into 2.8
xabbuh Sep 22, 2016
894fd6d
Merge branch '2.8' into 3.1
xabbuh Sep 22, 2016
d0a0a04
minor #7001 Several typo fixes (emirb)
xabbuh Sep 22, 2016
463f9db
Merge branch '3.1'
xabbuh Sep 22, 2016
8588820
Use new array syntax and make a few minor tweaks
bocharsky-bw Sep 23, 2016
089214a
minor #7005 Use new array syntax and make a few minor tweaks (bochars…
xabbuh Sep 24, 2016
65256d7
minor #6992 [Serializer] versionadded directive for name_converter op…
xabbuh Sep 24, 2016
d973d0d
minor #6990 replace dirname() call with .. (xabbuh)
xabbuh Sep 24, 2016
29e4241
normalize versionadded wording
xabbuh Sep 24, 2016
ac678c8
minor #7007 normalize versionadded wording (xabbuh)
wouterj Sep 24, 2016
57923b9
Missing semicolon
Saphyel Sep 25, 2016
36a460d
minor #7008 Missing semicolon (Saphyel)
xabbuh Sep 27, 2016
2569aca
Document new utf8 option of Routing component
mickaelandrieu Sep 1, 2016
3a0c0d8
[Framework] Update link-to-source mapping definition
nicolas-grekas Sep 30, 2016
a529157
[ServiceContainer] Remove any references to the implementation detail…
lemoinem Oct 1, 2016
d657abd
Routing: add explanation for the "_fragment" parameter
Jul 29, 2016
5e8d015
feature #6783 Routing: add explanation for the "_fragment" parameter …
wouterj Oct 6, 2016
0a22dda
[#6783] Fixed a syntax error
wouterj Oct 6, 2016
255ef43
feature #6870 [Debug] Added configuration reference for new debug opt…
wouterj Oct 6, 2016
a3b3ac6
[#6870] Move versionadded directives directly after the headline
wouterj Oct 6, 2016
2f866f2
feature #6876 Updated single command How to (mickaelandrieu)
weaverryan Oct 6, 2016
4c10ea8
Explain the limitations of the custom messages in UniqueEntity
javiereguiluz Aug 30, 2016
ee2ab69
feature #6932 Explain the limitations of the custom messages in Uniqu…
wouterj Oct 6, 2016
4d1b926
feature #6938 Document new utf8 option of Routing component (mickaela…
wouterj Oct 6, 2016
c5328d7
[#6938] Syntax error fixes and splitting the big note
wouterj Oct 6, 2016
8120c70
Merge branch '2.7' into 2.8
wouterj Oct 6, 2016
4240817
Merge branch '2.8' into 3.1
wouterj Oct 6, 2016
2b027a9
Merge branch '3.1'
wouterj Oct 6, 2016
9348ccf
[#6938] tweak the wording a bit
xabbuh Oct 7, 2016
9a37e98
feature #7019 [Framework] Update link-to-source mapping definition (n…
xabbuh Oct 14, 2016
d3346d8
Update ProgressBar docs with regress information
Sep 2, 2016
cbe1aad
feature #6949 Update ProgressBar docs with regress information (james…
xabbuh Oct 14, 2016
7464f75
Update the Apache Router article to deprecate it entirely
javiereguiluz Aug 29, 2016
b1e3f55
minor #6928 Update the Apache Router article to deprecate it entirely…
xabbuh Oct 14, 2016
ec21fc8
Merge branch '2.7' into 2.8
xabbuh Oct 14, 2016
fe66a3b
Merge branch '2.8' into 3.1
xabbuh Oct 14, 2016
cea26fc
Merge branch '3.1'
xabbuh Oct 14, 2016
fd43061
feature #6946 [VarDumper] Adding semantics with metadata (nicolas-gre…
xabbuh Oct 14, 2016
eda0441
use FCQN to reference the form type in add()
xabbuh Oct 20, 2016
982fdf8
minor #7069 use FCQN to reference the form type in add() (xabbuh)
wouterj Oct 20, 2016
37066fa
minor #7048 [#6938] tweak the wording a bit (xabbuh)
wouterj Oct 20, 2016
6ffdd07
feature #7021 [ServiceContainer] Remove implementation details of pri…
wouterj Oct 20, 2016
6a7b054
[#7021] Fixed a minor typo
wouterj Oct 20, 2016
e2e0585
feature #6947 [Cache] Add chapter about invalidation, tags, etc. (nic…
wouterj Oct 20, 2016
12c3ec4
Merge branch '2.7' into 2.8
wouterj Oct 20, 2016
f17e4fe
Added August and September changelog
wouterj Oct 20, 2016
3658a5a
Merge branch '2.8' into 3.1
wouterj Oct 20, 2016
e9bd794
Added August and September changelog
wouterj Oct 20, 2016
b84e1b8
Merge branch '3.1'
wouterj Oct 20, 2016
b2d38b2
Added August and September changelog
wouterj Oct 20, 2016
a5e3c7e
Accept only array in TagAwareAdapter::invalidateTags()
Koc Oct 21, 2016
152aecc
minor #7073 Accept only array in TagAwareAdapter::invalidateTags() (Koc)
xabbuh Oct 22, 2016
70bf1a6
Simple typo fix
Oct 22, 2016
a1682de
[PhpUnitBridge] Doc for @expectedDeprecation & new configuration env …
nicolas-grekas Oct 21, 2016
4bc8726
remove caution message
Oct 22, 2016
9d5ae6b
minor #7077 remove caution message (snoek09)
xabbuh Oct 26, 2016
ec0ddfc
minor #7078 Simple typo fix (Renrhaf)
xabbuh Oct 26, 2016
94827c5
feature #7074 [PhpUnitBridge] Doc for @expectedDeprecation & new conf…
xabbuh Oct 26, 2016
e714cda
[#7074] minor typo fix
xabbuh Oct 26, 2016
0e0bdc3
[FrameworkBundle] add support for prioritizing form type extension tags
dmaicher Sep 9, 2016
c2e58d5
feature #6958 [FrameworkBundle] add support for prioritizing form typ…
xabbuh Oct 26, 2016
dab168f
[#6958] add missing versionadded directive
xabbuh Oct 26, 2016
3ce4093
Update birthday.rst
angyvolin Oct 30, 2016
30fbfc3
minor #7100 Update birthday.rst (angyvolin)
xabbuh Oct 30, 2016
c675825
Merge branch '2.7' into 2.8
xabbuh Oct 30, 2016
b462510
Merge branch '2.8' into 3.1
xabbuh Oct 30, 2016
6a90c82
Merge branch '3.1'
xabbuh Oct 30, 2016
b7056b6
[Profiler] Fix rst typo
hason Nov 1, 2016
cfaaf08
Update input.rst
andreybolonin Nov 2, 2016
e40ab02
minor #7107 [Profiler] Fix rst typo (hason)
xabbuh Nov 5, 2016
99045ab
minor #7109 fixed app/console to bin/console on 3.1 branch (andreybol…
xabbuh Nov 5, 2016
4a17054
Remove AssetsHelper from the templating component
alexpts Oct 30, 2016
0bb20a5
minor #7101 Remove AssetsHelper from the templating component (alexpts)
xabbuh Nov 5, 2016
f865f93
[#6947] some minor tweaks
xabbuh Oct 21, 2016
b0495e0
Documented the Lockable Trait
javiereguiluz Sep 5, 2016
0e7abbb
feature #6953 Documented the Lockable Trait (javiereguiluz)
xabbuh Nov 5, 2016
50469f2
[#6953] add versionadded directive
xabbuh Nov 5, 2016
b87b882
minor #7075 [#6947] some minor tweaks (xabbuh)
xabbuh Nov 5, 2016
2ed4f1a
Merge branch '2.7' into 2.8
xabbuh Nov 5, 2016
da25d3c
Merge branch '2.8' into 3.1
xabbuh Nov 5, 2016
06b4761
Merge branch '3.1'
xabbuh Nov 5, 2016
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
Prev Previous commit
Next Next commit
[VarDumper] Adding semantics with metadata
  • Loading branch information
nicolas-grekas committed Sep 21, 2016
commit 3033bc7c7a331390c2123b11a5f530c6c390e5ec
6 changes: 3 additions & 3 deletions 6 components/var_dumper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
The VarDumper Component
=======================

The VarDumper component provides mechanisms for walking through any
arbitrary PHP variable. Built on top, it provides a better ``dump()``
function that you can use instead of :phpfunction:`var_dump`.
The VarDumper component provides mechanisms for extracting the state out of
any PHP variables. Built on top, it provides a better ``dump()`` function
that you can use instead of :phpfunction:`var_dump`.

Installation
------------
Expand Down
86 changes: 75 additions & 11 deletions 86 components/var_dumper/advanced.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ A cloner is used to create an intermediate representation of any PHP variable.
Its output is a :class:`Symfony\\Component\\VarDumper\\Cloner\\Data`
object that wraps this representation.

You can create a :class:`Symfony\\Component\\VarDumper\\Cloner\\Data`
object this way::
You can create a ``Data`` object this way::

use Symfony\Component\VarDumper\Cloner\VarCloner;

Expand All @@ -45,8 +44,11 @@ object this way::
// see the example at the top of this page
// $dumper->dump($data);

A cloner also applies limits when creating the representation, so that the
corresponding Data object could represent only a subset of the cloned variable.
Whatever the cloned data structure, resulting ``Data`` objects are always
serializable.

A cloner applies limits when creating the representation, so that one
can represent only a subset of the cloned variable.
Before calling :method:`Symfony\\Component\\VarDumper\\Cloner\\VarCloner::cloneVar`,
you can configure these limits:

Expand Down Expand Up @@ -154,6 +156,17 @@ Another option for doing the same could be::

// $output is now populated with the dump representation of $variable

.. tip::

You can pass ``true`` to the second argument of the
:method:`Symfony\\Component\\VarDumper\\Dumper\\AbstractDumper::dump`
method to make it return the dump as a string::

$output = $dumper->dump($cloner->cloneVar($variable), true);

.. versionadded:: 3.2
The ability to return a string was introduced in Symfony 3.2.

Dumpers implement the :class:`Symfony\\Component\\VarDumper\\Dumper\\DataDumperInterface`
interface that specifies the
:method:`dump(Data $data) <Symfony\\Component\\VarDumper\\Dumper\\DataDumperInterface::dump>`
Expand All @@ -167,7 +180,7 @@ Casters

Objects and resources nested in a PHP variable are "cast" to arrays in the
intermediate :class:`Symfony\\Component\\VarDumper\\Cloner\\Data`
representation. You can tweak the array representation for each object/resource
representation. You can customize the array representation for each object/resource
by hooking a Caster into this process. The component already includes many
casters for base PHP classes and other common classes.

Expand Down Expand Up @@ -203,17 +216,21 @@ can also be registered for the same resource type/class/interface.
They are called in registration order.

Casters are responsible for returning the properties of the object or resource
being cloned in an array. They are callables that accept four arguments:
being cloned in an array. They are callables that accept five arguments:

* the object or resource being casted,
* an array modelled for objects after PHP's native ``(array)`` cast operator,
* the object or resource being casted;
* an array modelled for objects after PHP's native ``(array)`` cast operator;
* a :class:`Symfony\\Component\\VarDumper\\Cloner\\Stub` object
representing the main properties of the object (class, type, etc.),
* true/false when the caster is called nested in a structure or not.
representing the main properties of the object (class, type, etc.);
* true/false when the caster is called nested in a structure or not;
* A bit field of :class:`Symfony\\Component\\VarDumper\\Caster\\Caster```::EXCLUDE_*``
constants.

Here is a simple caster not doing anything::

function myCaster($object, $array, $stub, $isNested)
use Symfony\Component\VarDumper\Cloner\Stub;

function myCaster($object, $array, Stub $stub, $isNested, $filter)
{
// ... populate/alter $array to your needs

Expand All @@ -240,3 +257,50 @@ properties not in the class declaration).
.. tip::

Before writing your own casters, you should check the existing ones.

Adding Semantics with Metadata
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. versionadded:: 3.2
As of Symfony 3.2, casters can attach metadata attributes to
:class:`Symfony\\Component\\VarDumper\\Cloner\\Stub` objects to inform
dumpers about the precise type of the dumped values.

Since casters are hooked on specific classes or interfaces, they know about the
objects they manipulate. By altering the ``$stub`` object (the third argument of
any caster), one can transfer this knowledge to the resulting ``Data`` object,
thus to dumpers. To help you do this (see the source code for how it works),
the component comes with a set of wrappers for common additional semantics. You
can use:

* :class:`Symfony\\Component\\VarDumper\\Caster\\ConstStub` to wrap a value that is
best represented by a PHP constant;
* :class:`Symfony\\Component\\VarDumper\\Caster\\ClassStub` to wrap a PHP identifier
(*i.e.* a class name, a method name, an interface, *etc.*);
* :class:`Symfony\\Component\\VarDumper\\Caster\\CutStub` to replace big noisy
objects/strings/*etc.* by ellipses;
* :class:`Symfony\\Component\\VarDumper\\Caster\\CutArrayStub` to keep only some
useful keys of an array;
* :class:`Symfony\\Component\\VarDumper\\Caster\\EnumStub` to wrap a set of virtual
values (*i.e.* values that do not exist as properties in the original PHP data
structure, but are worth listing alongside with real ones);
* :class:`Symfony\\Component\\VarDumper\\Caster\\LinkStub` to wrap strings that can
be turned into links by dumpers;
* :class:`Symfony\\Component\\VarDumper\\Caster\\TraceStub` and their
* :class:`Symfony\\Component\\VarDumper\\Caster\\FrameStub` and
* :class:`Symfony\\Component\\VarDumper\\Caster\\ArgsStub` relatives to wrap PHP
traces (used by :class:`Symfony\\Component\\VarDumper\\Caster\\ExceptionCaster`).

For example, if you know that your ``Product`` objects have a ``brochure`` property
that holds a file name or a URL, you can wrap them in a ``LinkStub`` to tell
``HtmlDumper`` to make them clickable::

use Symfony\Component\VarDumper\Caster\LinkStub;
use Symfony\Component\VarDumper\Cloner\Stub;

function ProductCaster(Product $object, $array, Stub $stub, $isNested, $filter = 0)
{
$array['brochure'] = new LinkStub($array['brochure']);

return $array;
}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.