Skip to content

[WIP] [security] adding a tip about supported algorithm for 'hash' function #3324

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 657 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
657 commits
Select commit Hold shift + click to select a range
da94d96
Fixed wrong redirecting
wouterj Sep 18, 2013
f0bb2dc
Change order of annotations to be the same as the gengerator
Urigo Sep 19, 2013
8313805
Merge branch '2.2' into 2.3
weaverryan Sep 23, 2013
a7e86b0
Merge branch '2.3'
weaverryan Sep 23, 2013
a52abf2
Merge branch '2.2' into 2.3
weaverryan Sep 25, 2013
6be4f80
Merge branch '2.3'
weaverryan Sep 25, 2013
f4aff75
Merge branch '2.2' into 2.3
weaverryan Sep 25, 2013
9a715ed
Merge branch '2.3'
weaverryan Sep 25, 2013
887f0d2
Updated the documentation for the simplified Callback constraint
webmozart Sep 26, 2013
632cbc3
Merge branch '2.2' into 2.3
weaverryan Sep 26, 2013
cc70738
Merge branch '2.3'
weaverryan Sep 26, 2013
893a780
[#3009] Updating information for 2.4 with the new checkPasswordLength…
weaverryan Sep 26, 2013
9748043
Merge branch '2.2' into 2.3
weaverryan Sep 28, 2013
c8dfa9e
Merge branch '2.3'
weaverryan Sep 28, 2013
574d7a8
[#2913] Removing versionadded 2.1 messages from the master branch
weaverryan Sep 28, 2013
a866606
Add a cookbook entry on how to limit session metadata writes
adrienbrault Sep 27, 2013
0e9f02a
added documentation about Request::setFactory()
fabpot Sep 30, 2013
16799b4
added the compact layout information
fabpot Oct 2, 2013
81698fe
Merge pull request #2947 from ChristianGaertner/patch-1
weaverryan Oct 2, 2013
7e0cb8b
[#2947] Adding versionadded details
weaverryan Oct 2, 2013
0f674c1
Merge pull request #2960 from WouterJ/doc_php_stopwatch
weaverryan Oct 2, 2013
2be6510
[#2960] Minor changes thanks to @xabbuh
weaverryan Oct 2, 2013
6a13396
Merge pull request #2728 from imobilis/ticket_7884
weaverryan Oct 2, 2013
88f051a
[#2728] Minor tweaks to docs on Process flush methods
weaverryan Oct 2, 2013
32c510f
Merge pull request #2971 from xabbuh/issue-2958
weaverryan Oct 2, 2013
66f1672
[#2971] Minor language tweak to be consistent with the other areas
weaverryan Oct 2, 2013
08056fd
Merge branch '2.2' into 2.3
weaverryan Oct 2, 2013
d4f9478
Merge branch '2.3'
weaverryan Oct 2, 2013
e52ac5c
fix versionadded directive
xabbuh Oct 4, 2013
a7da13a
fix build errors
xabbuh Oct 4, 2013
3eefa50
fix bash command display in components/console/usage
globin Oct 5, 2013
7a3d2a4
Merge branch '2.2' into 2.3
weaverryan Oct 5, 2013
4732a76
[#2728] Fixing typo thanks to @xabbuh
weaverryan Oct 5, 2013
022763a
Merge pull request #3036 from xabbuh/fix-build-errors-master
weaverryan Oct 5, 2013
43a5cec
Merge pull request #2993 from WouterJ/issue_2846
weaverryan Oct 5, 2013
d14bf28
Merge pull request #3035 from xabbuh/fix-build-errors-2.3
weaverryan Oct 5, 2013
eb6d21d
Merge branch '2.2' into 2.3
weaverryan Oct 5, 2013
f1436a5
Merge remote-tracking branch 'origin/2.3' into 2.3
weaverryan Oct 5, 2013
adcef55
Merge branch '2.3'
weaverryan Oct 5, 2013
5aa3a19
Merge pull request #3021 from fabpot/request-factory
weaverryan Oct 6, 2013
1d94f34
[#3021] Minor tweaks thanks to @WouterJ and @GromNaN
weaverryan Oct 6, 2013
cab5c89
Creates Expression Language chapter
wouterj Oct 6, 2013
27822ff
Bootstraps intro
wouterj Oct 6, 2013
efe349e
use literal for class name
xabbuh Oct 6, 2013
6631f70
Added operators
wouterj Oct 6, 2013
4ff9fae
Added another operator
wouterj Oct 6, 2013
f98fa24
Register Commands in the Service Container
lyrixx Oct 4, 2013
3c89c61
Merge pull request #3000 from Urigo/patch-1
weaverryan Oct 7, 2013
006ae65
Merge branch '2.2' into 2.3
weaverryan Oct 7, 2013
cfee7b8
Merge pull request #3043 from xabbuh/patch-1
weaverryan Oct 7, 2013
b675661
Merge branch '2.2' into 2.3
weaverryan Oct 7, 2013
b1478f3
Merge branch '2.3'
weaverryan Oct 7, 2013
9b04e53
Merge branch 'issue2480' of github.com:bschussek/symfony-docs into bs…
weaverryan Oct 8, 2013
b94e3f7
[#3012] Tweaks to Callback changes - most thanks to the careful eye o…
weaverryan Oct 8, 2013
3efd179
[Form] Add a 'submitted' attribute to the form view
GeLoLabs Oct 3, 2013
ca83f6a
Documents Output::*Verbose methods
lyrixx Oct 8, 2013
a9f2613
Fixed typo in direct_submit.rst
dfyz-it Oct 8, 2013
33d18c5
Merge branch '2.2' into 2.3
weaverryan Oct 10, 2013
533330f
fix missing snippet, latest components version
issei-m Oct 2, 2013
de4d4c9
Merge branch '2.2' into 2.3
weaverryan Oct 10, 2013
9268e3a
Merge pull request #3025 from fabpot/console-compact-layout
weaverryan Oct 10, 2013
3cda092
Merge branch '2.2' into 2.3
weaverryan Oct 10, 2013
26b2e9f
Merge branch '2.3'
weaverryan Oct 10, 2013
22a270e
Merge pull request #3017 from adrienbrault/session-metadata
weaverryan Oct 10, 2013
bdd37ba
[#3017] Very minor tweaks
weaverryan Oct 10, 2013
ce45928
make target name unique that is used as a reference
xabbuh Oct 10, 2013
808319d
Merge pull request #3029 from egeloen/f-valid-form-view
weaverryan Oct 14, 2013
7e7425c
Merge pull request #3031 from lyrixx/command-in-the-DIC
weaverryan Oct 14, 2013
0925090
[#3031] Adding some details as to why you may or may not want to regi…
weaverryan Oct 14, 2013
8e63221
Merge branch '2.2' into 2.3
weaverryan Oct 14, 2013
4009c51
Merge branch '2.3'
weaverryan Oct 14, 2013
29ead0d
Merge pull request #3040 from globin/2.3
weaverryan Oct 15, 2013
0c34aa1
Merge pull request #3048 from lyrixx/console-ouput-verbosity
weaverryan Oct 15, 2013
a53c8ad
[#3048] Adding intro paragraph about the semantic verbosity methods
weaverryan Oct 15, 2013
72b690f
[#3031] Fixing typo thanks to @xabbuh
weaverryan Oct 15, 2013
b944124
Added documentation about disabling internal validation of DomCrawler…
pylebecq Oct 20, 2013
5c1d29c
Update NotEqualTo.rst
garak Oct 21, 2013
609ead9
[Forms] Fix submit button usage in template
bicpi Oct 22, 2013
1494c08
Revert "Removed warning about using swiftmailer handler with memory s…
Oct 22, 2013
bbf53b4
remove extra word
Oct 22, 2013
b02bc8c
add note about not passing the command argument with Symfony 2.4
xabbuh Oct 22, 2013
8fe9fd6
Fixed comments and splitted in intro and syntax
wouterj Oct 26, 2013
f378ac4
Merge pull request #3051 from dfyz-it/fix_typo_direct_submit
weaverryan Oct 26, 2013
85fce13
Merge pull request #3058 from xabbuh/fix-build-errors
weaverryan Oct 26, 2013
10021a5
Merge branch '2.2' into 2.3
weaverryan Oct 26, 2013
e874269
Merge branch '2.3'
weaverryan Oct 26, 2013
289d301
[DomCrawler] Add missing "2.3" version number to versionadded box
bicpi Oct 27, 2013
31fb5b8
update framework csrf configuration
Tobion Oct 28, 2013
f3e9d17
Merge pull request #3087 from xabbuh/issue-2870-master
weaverryan Oct 28, 2013
2a50493
switch argument to key to be more precise
cordoval Oct 28, 2013
fda51ee
fix introducing typo
cordoval Oct 28, 2013
bbca179
[PropertyAccess] Fix typo
bicpi Oct 29, 2013
be7ee70
[Components][Filesystem] Move version hint for dumpFile method
bicpi Oct 30, 2013
dda6dde
[Components][Filesystem] Fix versionadded box indentation
bicpi Oct 30, 2013
d43395b
Update tablehelper.rst
carltondickson Oct 30, 2013
d662134
Added link to tablehelper
pgodel Oct 31, 2013
36baee1
Add warning about synchronized service with private services
adrienbrault Oct 18, 2013
dd2857c
[#3072] Syntax tweaks thanks to @xabbuh
weaverryan Nov 2, 2013
02d6a71
Merge pull request #3075 from pylebecq/dom-crawler-disable-internal-v…
weaverryan Nov 2, 2013
6f23f9d
Merge branch '2.2' into 2.3
weaverryan Nov 2, 2013
8a91f15
Merge branch '2.3'
weaverryan Nov 2, 2013
ae03fdb
[#3075] Moving new Form::disableValidation DomCrawler details into th…
weaverryan Nov 2, 2013
1f85167
Merge branch '2.2' into 2.3
weaverryan Nov 2, 2013
fee90e9
[#3076] Changes for 2.3 only thanks to @pborreli
weaverryan Nov 2, 2013
957bca4
Merge branch '2.3'
weaverryan Nov 2, 2013
2516e2a
Merge pull request #3079 from garak/patch-26
weaverryan Nov 2, 2013
b85a9a1
Merge pull request #3082 from bicpi/fix_submit_button
weaverryan Nov 2, 2013
10fe8a4
Removed 2.2 references as it reached eom
wouterj Nov 2, 2013
6dd5cb4
add missing version number to versionadded directive
xabbuh Nov 3, 2013
08ef9f8
Merge pull request #3084 from greg0ire/2.3
weaverryan Nov 3, 2013
67b4d21
Merge branch '2.3'
weaverryan Nov 3, 2013
3943d8f
[#3084] Putting back message that was incorrect in 2.3, but correct i…
weaverryan Nov 3, 2013
17b584a
Merge branch '2.2' into 2.3
weaverryan Nov 3, 2013
4644e2b
Merge branch '2.3'
weaverryan Nov 3, 2013
6829df3
Removing versionadded 2.1 that leaked in from a merge up
weaverryan Nov 3, 2013
5870a86
Merge pull request #3106 from bicpi/add_missing_version_number
weaverryan Nov 3, 2013
8ef95c2
Merge branch '2.2' into 2.3
weaverryan Nov 3, 2013
8a71cdf
Merge pull request #3114 from Tobion/patch-2
weaverryan Nov 3, 2013
f65f1d0
[#3114] Lining up spaces
weaverryan Nov 3, 2013
a516f61
Merge pull request #3119 from cordoval/patch-17
weaverryan Nov 3, 2013
97b6a2a
Merge pull request #3122 from bicpi/fix_property_access_typos_2_3
weaverryan Nov 3, 2013
787cc8b
Merge pull request #3132 from bicpi/move_versionadded_box
weaverryan Nov 3, 2013
62c9aad
Adding a period
weaverryan Nov 3, 2013
f0d8983
Merge pull request #3136 from carltondickson/patch-1
weaverryan Nov 3, 2013
728acb6
Merge pull request #3139 from pgodel/2.3
weaverryan Nov 3, 2013
d4198fc
append 'to' to 'in order'
xabbuh Nov 3, 2013
3368509
Merge pull request #3147 from xabbuh/fix-versionadded
weaverryan Nov 3, 2013
9660455
use verbose HTTP status code constants
xabbuh Nov 3, 2013
5d412ae
Merge branch '2.2' into 2.3
weaverryan Nov 6, 2013
e094853
Merge pull request #3148 from xabbuh/http-status-code-constants
weaverryan Nov 6, 2013
b376330
Merge branch '2.2' into 2.3
weaverryan Nov 6, 2013
e2e8372
[#2920] Re-adding fields that were available in Doctrine for Symfony 2.3
weaverryan Nov 6, 2013
b9b60d7
Merge branch '2.3'
weaverryan Nov 6, 2013
6af9d41
Merge branch '2.2' into 2.3
weaverryan Nov 7, 2013
4dfdb36
Merge branch '2.3'
weaverryan Nov 7, 2013
f889731
Fixed typo
Nov 8, 2013
87962e3
Bumped version number
peterrehm Nov 9, 2013
1baa428
added the example Twig Code for the HTML5 no novalidate attribute
sebastianblum Nov 7, 2013
b33f532
Fix white spaces in the previous commit
sebastianblum Nov 7, 2013
2e3424f
Added the PHP no validate example
sebastianblum Nov 8, 2013
efb88eb
added PHP file comment
sebastianblum Nov 9, 2013
34d0be4
added configuration block
sebastianblum Nov 9, 2013
66d5272
[#3170] Tabbing out the code example so it's in the sidebar
weaverryan Nov 9, 2013
c87dfec
Merge pull request #3171 from zenobius/patch-1
weaverryan Nov 9, 2013
f4975fd
Merge pull request #3175 from peterrehm/patch-5
weaverryan Nov 9, 2013
031c320
2.3 only - Collection of minor fixes
bicpi Nov 9, 2013
c5ae3dd
[#2956] Refactoring the scopes entry entirely to not talk about the r…
weaverryan Sep 12, 2013
d417f7b
[#2972] Many small tweaks - thanks very much to @WouterJ and @xabbuh
weaverryan Nov 12, 2013
3dcbbc2
[#2972] Clarifying how to use the request_stack with an example
weaverryan Nov 12, 2013
941a5cc
Merge pull request #2972 from symfony/scope-refactoring
weaverryan Nov 12, 2013
80a3643
some tweaks and fixes to d417f7b and 3dcbbc2
xabbuh Nov 12, 2013
7751358
Merge pull request #3177 from bicpi/fixing_collection_2_3_only
weaverryan Nov 12, 2013
d11327b
Merge branch '2.2' into 2.3
weaverryan Nov 13, 2013
ba413f4
Merge branch '2.3'
weaverryan Nov 13, 2013
343a59e
Removing some 2.1 references that were merged up
weaverryan Nov 13, 2013
4c2348c
2.3 only: Making consistent component names
bicpi Nov 15, 2013
2f4479d
Merge pull request #3179 from xabbuh/master-tweaks
weaverryan Nov 16, 2013
62fadc5
Merge branch '2.2' into 2.3
weaverryan Nov 16, 2013
4754401
Merge branch '2.3'
weaverryan Nov 16, 2013
ff4a44e
[#2906][#3190] Removing versionadded:: 2.1 tags after merge
weaverryan Nov 16, 2013
36ebcab
Merge branch '2.2' into 2.3
weaverryan Nov 16, 2013
2e91170
Merge branch '2.3'
weaverryan Nov 16, 2013
799b2c6
Merge pull request #3044 from WouterJ/document_expressionlanguage
weaverryan Nov 16, 2013
e9981ae
Fixed namespace separator
Nov 17, 2013
c8d2ab1
Update dic_tags.rst
mgrinko Nov 18, 2013
80db504
Update dic_tags.rst
mgrinko Nov 18, 2013
0d3f92b
Update dic_tags.rst
mgrinko Nov 18, 2013
056d58c
Update dic_tags.rst
mgrinko Nov 18, 2013
05e713b
add documentation for configuring additional monolog channels
xabbuh Nov 18, 2013
af764d7
Minor fixes: Typos, Formatting, code, YAML code block
bicpi Nov 19, 2013
6a6910f
Add missing new line at the end of file
bicpi Nov 19, 2013
887f9bc
revert incorrect fix
bicpi Nov 19, 2013
ddd67f2
2.3: Minor fixes
bicpi Nov 21, 2013
f4306ac
Simplified "Ensuring the database persistence" example
Nov 21, 2013
958eb15
Simplified "Ensuring the database persistence" example
Nov 22, 2013
850fde9
Merge branch '2.2' into 2.3
weaverryan Nov 22, 2013
fb61db9
Merge branch '2.3'
weaverryan Nov 23, 2013
55a2de4
Removing a versionadded:: 2.1 that came from the merge
weaverryan Nov 23, 2013
d72c135
fixed repeated verb in cookbook/serializer
77web Nov 23, 2013
0ce9693
add missing verb in cookbook/serializer
77web Nov 25, 2013
d02849d
Merge branch '2.2' into 2.3
weaverryan Nov 27, 2013
36ed7b9
Merge branch '2.2' into 2.3
weaverryan Nov 27, 2013
2b97bbe
Merge branch '2.3' into 2.4
weaverryan Nov 27, 2013
0cc1a38
Merge pull request #3189 from bicpi/component_names_consistency_2_3_only
weaverryan Nov 27, 2013
12621a9
Merge branch '2.3' into 2.4
weaverryan Nov 27, 2013
e8d19b8
Merge pull request #3208 from bicpi/more_fixes_2_3
weaverryan Nov 27, 2013
cf74140
Merge pull request #3214 from bicpi/even_more_fixes_2_3
weaverryan Nov 27, 2013
b237ea8
Merge branch '2.2' into 2.3
weaverryan Nov 27, 2013
70b475b
Merge branch '2.3' into 2.4
weaverryan Nov 27, 2013
e9a81bf
[#3044] Furthering @WouterJ's work on the ExpressionLanguage component
weaverryan Nov 17, 2013
a14c39d
[#3191] Many tweaks to expression language component thanks to @Woute…
weaverryan Nov 28, 2013
cd98a63
[#3191] Fixing semicolon thanks to @WouterJ
weaverryan Nov 28, 2013
19493af
Merge pull request #3199 from szjani/patch-1
weaverryan Nov 28, 2013
fcb927d
[#3199] Making format tweaks suggested by @WouterJ
weaverryan Nov 28, 2013
781f89a
Merge pull request #3201 from mgrinko/patch-1
weaverryan Nov 28, 2013
5050dcf
[#3201] Minor language tweak to clarify why you might have this situa…
weaverryan Nov 28, 2013
6f0694c
Merge branch '2.3' into 2.4
weaverryan Nov 28, 2013
aea6533
documentation for the regex based exclusion of 404 errors with Monolo…
xabbuh Nov 17, 2013
6ec097d
[#3203] Minor tweaks to new 404 logging entry
weaverryan Nov 28, 2013
64bd394
documentation for the regex based exclusion of 404 errors with Monolo…
xabbuh Nov 17, 2013
f658639
[#3203] Minor tweaks to new 404 logging entry
weaverryan Nov 28, 2013
eb0e925
[#3203] Changing my mind and backporting these docs to 2.3
weaverryan Nov 28, 2013
112d16b
Merge branch '2.3' into 2.4
weaverryan Nov 28, 2013
d2c61a5
Merge pull request #3205 from xabbuh/issue-2862-configure-channels
weaverryan Nov 28, 2013
109c67d
[#3205] Minor tweaks to new channels config
weaverryan Nov 28, 2013
fe0571a
Merge branch '2.3' into 2.4
weaverryan Nov 28, 2013
22b3776
[#3205] Tweaking versionadded
weaverryan Nov 28, 2013
8bbc918
Merge branch '2.2' into 2.3
weaverryan Nov 28, 2013
08de8b2
Merge branch '2.3' into 2.4
weaverryan Nov 28, 2013
4dba1ac
Changed parameter container to requestStack (2.4+)
maks-rafalko Nov 22, 2013
e3e3f6f
Merge branch 'patch-1' of github.com:KoernerWS/symfony-docs into Koer…
weaverryan Nov 28, 2013
7a56692
Merge pull request #3221 from 77web/fix_repeated_verb_in_cookbook-ser…
weaverryan Nov 28, 2013
02aead2
Merge branch '2.2' into 2.3
weaverryan Nov 28, 2013
2198c86
Merge branch '2.3' into 2.4
weaverryan Nov 28, 2013
77b84ea
executable permission unset
petk Nov 28, 2013
0675b56
Removed assignment operator
wouterj Nov 29, 2013
e506f01
Added example of range operator
wouterj Nov 29, 2013
0725a8b
Added docs for using functions
wouterj Nov 29, 2013
6e2e583
Added article about custom functions
wouterj Nov 29, 2013
78baee9
Merge pull request #3233 from peterkokot/patch-2.4
weaverryan Nov 29, 2013
4d50f34
[#3022] Adding service container expression language details
weaverryan Nov 28, 2013
22c9404
[#3232][#3022] Making many small tweaks thanks to @WouterJ and @xabbuh
weaverryan Nov 29, 2013
4147ad4
Merge pull request #3232 from symfony/expression-framework-container
weaverryan Nov 29, 2013
240df84
Merge pull request #3241 from WouterJ/expression-furthering-component
weaverryan Nov 29, 2013
667d590
[#3241] Minor tweaks to new expression language functions
weaverryan Nov 29, 2013
1a2b5f6
Fixed syntax + rewording
wouterj Dec 1, 2013
4738c75
[#3232] Fixing note about expressions with parameters thanks to @WouterJ
weaverryan Dec 1, 2013
5c62d5d
Merge pull request #3254 from WouterJ/fix_link
weaverryan Dec 1, 2013
f4c9536
Merge branch '2.2' into 2.3
weaverryan Dec 1, 2013
93e8cd2
Merge branch '2.3' into 2.4
weaverryan Dec 1, 2013
ac15bf5
[#3022] Adding framework documentation for routing expressions
weaverryan Dec 1, 2013
be86fef
[#3022] Adding new Expression validation constraint
weaverryan Dec 1, 2013
d72759a
[#3022] Adding all of the security-related expression functionality docs
weaverryan Dec 1, 2013
33676dc
[#3022] Adding a quick cookbook entry to highlight where the expressi…
weaverryan Dec 1, 2013
0cf1828
[#3022][#3258] Tweaks thanks to @cordoval
weaverryan Dec 1, 2013
bc22f16
[#3022][#3258] Enhancing example at @ggam's suggestion
weaverryan Dec 2, 2013
0000250
[#3258] A bunch of fixes thanks to @WouterJ
weaverryan Dec 2, 2013
816c06b
Merge pull request #3258 from symfony/expression-language-framework
weaverryan Dec 2, 2013
a9e0e66
Added Caching article
wouterj Dec 2, 2013
d6b3a14
[Cookbook] Fixes a link to the Request class
zczapran Dec 2, 2013
0a59f6d
Added doctrine note
wouterj Dec 2, 2013
d1bbdc4
Merge pull request #3261 from zczapran/2.4
weaverryan Dec 2, 2013
180fc13
Merge pull request #3260 from WouterJ/component_expression_caching
weaverryan Dec 3, 2013
be60602
[#3260] Minor tweaks when proofreading
weaverryan Dec 3, 2013
2812e68
changed version from 2.3.0 --> 2.3.7
luebbert42 Dec 1, 2013
e15226e
[#3252] Simplifying version constraint by using a wildcard
weaverryan Dec 3, 2013
4b97990
Merge branch '2.2' into 2.3
weaverryan Dec 3, 2013
821a1b4
Merge branch '2.3' into 2.4
weaverryan Dec 3, 2013
9d4a138
Merge branch 'master' into eom-2-2
weaverryan Dec 8, 2013
42d0dd5
[security] adding a tip about supported algorithm for 'hash' function
Dec 14, 2013
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
23 changes: 16 additions & 7 deletions book/controller.rst
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ working with forms, for example::
{
$form = $this->createForm(...);

$form->bind($request);
$form->handleRequest($request);
// ...
}

Expand Down Expand Up @@ -392,8 +392,13 @@ itself.

Extending the base class is *optional* in Symfony; it contains useful
shortcuts but nothing mandatory. You can also extend
:class:`Symfony\\Component\\DependencyInjection\\ContainerAware`. The service
container object will then be accessible via the ``container`` property.
:class:`Symfony\\Component\\DependencyInjection\\ContainerAware` or use
the class:`Symfony\\Component\\DependencyInjection\\ContainerAwareTrait` trait
(if you have PHP 5.4). The service container object will then be accessible
via the ``container`` property.

.. versionadded:: 2.4
The ``ContainerAwareTrait`` is new in Symfony 2.4.

.. note::

Expand Down Expand Up @@ -496,9 +501,9 @@ value to each variable.
directly by duplicating the current request. When this
:ref:`sub request <http-kernel-sub-requests>` is executed via the ``http_kernel``
service the ``HttpKernel`` returns a ``Response`` object::

use Symfony\Component\HttpKernel\HttpKernelInterface;

$path = array(
'_controller' => 'AcmeHelloBundle:Hello:fancy',
'name' => $name,
Expand Down Expand Up @@ -686,7 +691,8 @@ For example, imagine you're processing a form submit::
{
$form = $this->createForm(...);

$form->bind($this->getRequest());
$form->handleRequest($this->getRequest());

if ($form->isValid()) {
// do some sort of processing

Expand Down Expand Up @@ -744,12 +750,15 @@ headers and content that's sent back to the client::
use Symfony\Component\HttpFoundation\Response;

// create a simple Response with a 200 status code (the default)
$response = new Response('Hello '.$name, 200);
$response = new Response('Hello '.$name, Response::HTTP_OK);

// create a JSON-response with a 200 status code
$response = new Response(json_encode(array('name' => $name)));
$response->headers->set('Content-Type', 'application/json');

.. versionadded:: 2.4
Support for HTTP status code constants was added in Symfony 2.4.

.. tip::

The ``headers`` property is a
Expand Down
5 changes: 5 additions & 0 deletions book/doctrine.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1449,6 +1449,11 @@ using. The following types are supported in Doctrine:
* ``object`` (serialized and stored in a ``CLOB`` field)
* ``array`` (serialized and stored in a ``CLOB`` field)
* ``blob`` (mapped to a resource stream)
* ``simple_array`` (serialized using :phpfunction:`implode()` and :phpfunction:`explode()`,
with a comma as delimiter, and stored in a ``CLOB`` field)
* ``json_array`` (serialized using :phpfunction:`json_encode()` and :phpfunction:`json_decode()`,
and stored in a ``CLOB`` field)
* ``guid``

For more information, see Doctrine's `Mapping Types documentation`_.

Expand Down
Loading