Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix code file upload #2456

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,222 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1222 commits
Select commit Hold shift + click to select a range
79e7558
Merge branch '2.0' into 2.1
weaverryan Jan 3, 2013
235513a
Merge branch '2.1'
weaverryan Jan 3, 2013
2b8e09b
Added missing PHP and XML formats in new constraints
wouterj Jan 3, 2013
c9a25a5
typo fix
lsmith77 Jan 5, 2013
6bd16c2
Merge pull request #2106 from lsmith77/patch-1
weaverryan Jan 6, 2013
cf20b16
Fixed use of equals (closes #2109)
wouterj Jan 6, 2013
e721d7e
Adding versionadd for disabled and read_only form options
Sgoettschkes Jan 8, 2013
5828740
[Validation] Update CardScheme
Sgoettschkes Jan 8, 2013
5021adc
Minor changes regarding the hidden form type and form type option dis…
Sgoettschkes Jan 9, 2013
cc3ce38
Fixing minor grammer issues in CardScheme constraint
Sgoettschkes Jan 9, 2013
fe3c9dc
Adding a link to the disabled options to the read_only description
Sgoettschkes Jan 9, 2013
331001c
Merge branch '2.0' into 2.1
fabpot Jan 10, 2013
bc78096
Merge branch '2.1'
fabpot Jan 10, 2013
5065822
Merge pull request #2115 from Sgoettschkes/card_scheme
weaverryan Jan 11, 2013
6ddc50c
Merge pull request #2111 from WouterJ/patch-3
weaverryan Jan 11, 2013
6467fdc
[#2111] Minor language tweaks
weaverryan Jan 11, 2013
c2d0b99
made changes to take into account the new usage of the different cont…
fabpot Jan 12, 2013
abdcf9f
fixed markup
fabpot Jan 12, 2013
1550871
switched usage of the include tag to the include function
fabpot Jan 12, 2013
823cef3
Merge pull request #2121 from fabpot/content-renderer
weaverryan Jan 13, 2013
08a2847
[#2121] Fixing a now defunct include
weaverryan Jan 13, 2013
a8d444e
Fix UsernameNotFoundException example (take 2)
Jan 13, 2013
21178b1
[#2121] Tweaking a few things related to new render changes
weaverryan Jan 13, 2013
e6ba8e3
Merge pull request #2127 from jrobeson/patch-2
weaverryan Jan 13, 2013
d93958a
Merge branch '2.0' into 2.1
weaverryan Jan 14, 2013
6896c9b
Merge branch '2.1'
weaverryan Jan 14, 2013
9781582
Merge branch '2.0' into 2.1
weaverryan Jan 15, 2013
eed8e46
Fixed list of methods of the filesystem component
bjo3rnf Jan 4, 2013
f320634
Fixing a typo
weaverryan Jan 15, 2013
1bd5d79
Updated app_dev.php code
yosmanyga Jan 15, 2013
34dffbd
Docs for repositoryMethod option of UniqueEntity
docteurklein Jan 16, 2013
fa32729
add versionadded tag
docteurklein Jan 16, 2013
ba3eb8d
Use routes for security paths, instead of raw paths
wouterj Jan 16, 2013
2567919
Merge branch '2.0' into 2.1
weaverryan Jan 17, 2013
2fb8acf
Merge branch '2.1'
weaverryan Jan 17, 2013
92baa85
Merge branch '2.0' into 2.1
fabpot Jan 17, 2013
9e858d0
Merge branch '2.1'
fabpot Jan 17, 2013
a758cea
Merge branch '2.0' into 2.1
weaverryan Jan 18, 2013
6ac450b
[#2148] Bringing up one of the changes made by @franmomu
weaverryan Jan 18, 2013
5e53d4c
Merge branch '2.1'
weaverryan Jan 18, 2013
ddc8747
Merge remote-tracking branch 'origin/master'
weaverryan Jan 18, 2013
f52e791
fixed filename, thanks to @rpmsk
wouterj Jan 19, 2013
c488fcc
Merge pull request #2157 from WouterJ/patch-6
weaverryan Jan 20, 2013
a9ec209
Merge branch '2.0' into 2.1
weaverryan Jan 20, 2013
df94e55
[#772] Removing unnecessary rendering of parent repeated field's erro…
weaverryan Jan 20, 2013
6fd5ffc
added a missing reference to the proxy route (refs symfony/symfony-st…
fabpot Jan 20, 2013
700f529
Update reference/configuration/framework.rst
humandb Jan 20, 2013
63fae5b
Update reference/configuration/framework.rst
humandb Jan 20, 2013
4191b45
Merge branch '2.0' into 2.1
weaverryan Jan 20, 2013
3a364b9
Fixing a typo, thanks to @rpmsk
weaverryan Jan 21, 2013
52713f5
Update reference/constraints/Callback.rst
sstok Jan 21, 2013
8420b02
Fixes most pattern, _scheme or _method occurences
wouterj Jan 21, 2013
38e8dad
Added use of addPrefix to define prefixes
wouterj Jan 21, 2013
75d6b4d
Addes some versionadded blocks
wouterj Jan 21, 2013
73d24f9
Grammar and syntax cleanup
johnkary Jan 21, 2013
4c48a42
Add comment on http_digest auth.
tarjei Jan 21, 2013
b784172
Update reference/configuration/security.rst
tarjei Jan 21, 2013
0de8194
Changed hostname to host
wouterj Jan 21, 2013
4e5cca2
Fixed typo, thanks to @stof
wouterj Jan 21, 2013
95bf4da
Update reference/configuration/security.rst
tarjei Jan 22, 2013
96466b9
Update reference/configuration/security.rst
tarjei Jan 22, 2013
75a4f61
Update reference/configuration/security.rst
tarjei Jan 22, 2013
240a1e2
Merge pull request #2159 from fabpot/missing-reference
weaverryan Jan 22, 2013
d35b34f
Merge pull request #2165 from WouterJ/update_routing_22
weaverryan Jan 22, 2013
6dbbb3c
[#2165] Filling in a few more changes of pattern -> path
weaverryan Jan 22, 2013
7ab8be5
replaced the proxy route with a listener
fabpot Jan 23, 2013
65494c8
Merge pull request #2169 from johnkary/stopwatchFixes-1
weaverryan Jan 23, 2013
4d23c70
merged branch fabpot/content-renderer-simplification (PR #2179)
fabpot Jan 24, 2013
bbddf52
[DI] PrependExtensionInterface sync doc with latest Sf2 changes
vicb Jan 24, 2013
854bf0e
Merge pull request #2170 from tarjei/patch-1
weaverryan Jan 25, 2013
cae9f9f
Merge branch '2.0' into 2.1
weaverryan Jan 25, 2013
c926dae
Merge branch '2.1'
weaverryan Jan 25, 2013
7679617
Update reference/constraints/UniqueEntity.rst
docteurklein Jan 25, 2013
87710a8
Merge pull request #2074 from Sgoettschkes/issue2022
weaverryan Jan 27, 2013
d318602
[#2074] Minor tweaks for DialogHelper::select method
weaverryan Jan 27, 2013
fb97719
Merge pull request #2089 from jakzal/finder-glob-support
weaverryan Jan 27, 2013
09d1d91
Merge pull request #2097 from WouterJ/ref_constraint_php
weaverryan Jan 27, 2013
7a27c7a
Merge pull request #2114 from Sgoettschkes/issue2096
weaverryan Jan 27, 2013
c959bd0
[#2114] Simplifying a few things with disabled/readonly
weaverryan Jan 27, 2013
9c4200d
Merge pull request #2141 from yosmanyga/debugging
weaverryan Jan 27, 2013
7133238
Merge pull request #2145 from docteurklein/patch-1
weaverryan Jan 27, 2013
fc1580d
[#2145] Minor tweaks for UniqueEntity repositoryMethod option
weaverryan Jan 27, 2013
9d3a9a2
sf2.2 note: _method override disabled by default
mattattui Jan 28, 2013
61ac029
Link method to docs as per @WouterJ suggestion
mattattui Jan 28, 2013
1bc10c1
Merge pull request #2164 from sstok/patch-3
weaverryan Jan 30, 2013
1b4086b
[#2164] Removing one more reference to deprecated addViolationAtSubPath
weaverryan Jan 30, 2013
a479570
Merge pull request #2181 from vicb/dic/prepext
weaverryan Jan 31, 2013
2b6c443
Merge pull request #2189 from inanimatt/patch-1
weaverryan Jan 31, 2013
8e45839
Correct parameters file name
johnkary Jan 29, 2013
78e6d4b
[#1640] Removed framework.session.auto_start setting
wouterj Jan 31, 2013
0dee5c6
Added trans_default_domain tag to twig reference
wouterj Jan 31, 2013
c1eddf7
Reformatted trans_default_domain versionadded block
wouterj Jan 31, 2013
d337e76
Reformatted references for translation in twig
wouterj Jan 31, 2013
eb9044f
[#1708] Fixed description of single_text date widget
wouterj Jan 31, 2013
ac74a8e
updated render usage
fabpot Feb 1, 2013
4adc1e3
Merge pull request #2205 from fabpot/content-renderer-simplification
weaverryan Feb 3, 2013
c5ebfd0
Merge branch '2.0' into 2.1
weaverryan Feb 3, 2013
cce310f
Update reference/configuration/framework.rst
humandb Jan 31, 2013
cf74914
Update reference/configuration/framework.rst
humandb Feb 1, 2013
153e180
[#2198] Fixing some syntax errors, long lines
weaverryan Feb 3, 2013
5743c76
Merge branch '2.0' into 2.1
weaverryan Feb 3, 2013
1c426f6
[#2199] Porting fix up to 2.1 branch
weaverryan Feb 3, 2013
f07492e
Merge branch '2.0' into 2.1
weaverryan Feb 3, 2013
b1d3daa
Merge branch '2.1'
weaverryan Feb 3, 2013
eedcf38
Fixing syntax error
weaverryan Feb 3, 2013
0eda298
[#1786] Adding documentation for Twig namespaced paths support
weaverryan Feb 3, 2013
11fa2ef
shorten dynamic forms article, don't explain what is already elsewher…
khepin Feb 7, 2013
64a3b2e
Fixed issues, thanks to @weaverryan
wouterj Feb 7, 2013
a7ce478
[#1786] Tweaks per @WouterJ on #2211
weaverryan Feb 8, 2013
1409445
Merge pull request #2211 from symfony/twig-namespaced-paths
weaverryan Feb 8, 2013
c9bd8f6
Merge pull request #2146 from WouterJ/fix_2108
weaverryan Feb 11, 2013
eaf16e5
[#2146] A few more tweaks for security paths => routes
weaverryan Feb 11, 2013
89126fa
Update book/translation.rst
lkysow Jan 29, 2013
457cf48
Merge pull request #2200 from WouterJ/patch-10
weaverryan Feb 11, 2013
51abbea
[#2200] Removing one more reference to auto_start and updating all of…
weaverryan Feb 11, 2013
8f43530
Update book/translation.rst
lkysow Feb 6, 2013
0ad5cf4
Merge pull request #2204 from WouterJ/patch-11
weaverryan Feb 14, 2013
ea17640
[Reference] updated framework config reference
1ed Feb 16, 2013
1df50db
Merge branch '2.0' into 2.1
weaverryan Feb 19, 2013
d701c1a
[#2231] Reversing change that only applies to 2.0 after merging 2.0 i…
weaverryan Feb 19, 2013
f239002
[#2211] Fix thanks to @stof!
weaverryan Feb 19, 2013
b5056b3
Merge pull request #1936 from elnur/bcrypt-password-encoder
weaverryan Feb 19, 2013
782c649
[#1936] Moving new BCrypt details into the reference section and touc…
weaverryan Feb 19, 2013
8a8ea6f
Merge pull request #2241 from 1ed/framework-ref
weaverryan Feb 19, 2013
989073d
Merge branch '2.0' into 2.1
weaverryan Feb 19, 2013
a067cba
Merge branch '2.1'
weaverryan Feb 19, 2013
ad831bc
Fix naming of __construct()
johnkary Feb 19, 2013
6f71062
Improve readability
johnkary Feb 19, 2013
12b8be3
Remove extra whitespace
johnkary Feb 19, 2013
fd9a696
Add API doc links
johnkary Feb 19, 2013
e12cade
Merge branch '2.0' into 2.1
weaverryan Feb 22, 2013
124901d
[#2258] Revert "Fixed the serializer initialization for 2.0"
weaverryan Feb 22, 2013
5e5c93d
Created PropertyAccess component docs
wouterj Jan 14, 2013
f7a36ae
Merge branch 'document_propertyaccess' of github.com:WouterJ/symfony-…
weaverryan Feb 23, 2013
91171ac
Merge branch 'cookbook/form/unit-testing' of github.com:marekkalnik/s…
weaverryan Feb 23, 2013
6010340
Merge pull request #2252 from johnkary/configSemantic
weaverryan Feb 23, 2013
6b04895
Merge branch '2.0' into 2.1
weaverryan Feb 23, 2013
776ae4c
[#1039][#2251] Updating the Form variables section with the new 2.1 v…
weaverryan Feb 23, 2013
162cc6b
Merge remote-tracking branch 'origin/2.1' into 2.1
weaverryan Feb 23, 2013
3ccb220
[#2012] Proofreading the new unit testing form types chapter
weaverryan Feb 23, 2013
a0be65e
Merge branch 'marekkalnik-cookbook/form/unit-testing' into 2.1
weaverryan Feb 24, 2013
24274f0
[#2130][2136] Proofreading the excellent new PropertyAccess component…
weaverryan Feb 25, 2013
fe35ecc
Merge branch '2.0' into 2.1
weaverryan Feb 25, 2013
5246f51
Merge branch '2.1'
weaverryan Feb 25, 2013
4dabbf2
Used route names for security paths
wouterj Feb 20, 2013
b332099
Update reference/configuration/framework.rst
luiges90 Feb 25, 2013
f239d0e
Merge branch '2.0' into 2.1
weaverryan Feb 27, 2013
53c4d8e
Merge branch '2.1'
weaverryan Feb 27, 2013
b408349
Merge pull request #2202 from WouterJ/trans_domain_twig
weaverryan Mar 4, 2013
a4ea400
[#2202] Slight fixes - misnamed target and missing names for the targ…
weaverryan Mar 4, 2013
725d107
Merge branch '2.0' into 2.1
weaverryan Mar 4, 2013
5dc2b8b
[2.2] Updating some URLs from 2.1/master to 2.2
weaverryan Mar 8, 2013
3e6be25
Merge branch '2.0' into 2.1
weaverryan Mar 8, 2013
c446279
Merge branch '2.1' into 2.2
weaverryan Mar 8, 2013
b38edbc
[#2248] Changing pattern -> path after a merge per @WouterJ
weaverryan Mar 8, 2013
e478e24
add explicit profiler enabling, necessary on 2.2
ricardclau Mar 8, 2013
929bd1c
Update introduction.rst
janschoenherr Mar 10, 2013
e6332ab
[Reference] Updated Callback to use interfaces
franmomu Mar 11, 2013
405b15f
[Reference] [UserPassword] Use the non-deprecated class for Symfony 2.2
michaelperrin Mar 11, 2013
cb1315c
[Reference] [UserPassword] Add a note concerning the namespace change
michaelperrin Mar 11, 2013
7fd28f2
[Reference] [UserPassword] Updated deprecation note
michaelperrin Mar 11, 2013
b34f46a
Merge pull request #2297 from michaelperrin/fix/ref-UniquePassword-depr
weaverryan Mar 12, 2013
995409e
Merge pull request #2294 from janschoenherr/patch-2
weaverryan Mar 12, 2013
c524fdf
Fixed the ESI render example code to work with symfony 2.1
Mar 13, 2013
8e36949
Update default exception_controller in TwigBundle Configuration Refer…
hacfi Mar 14, 2013
678ab93
Update twig_reference.rst
Mar 5, 2013
47aeb95
Fixed typos
pborreli Mar 6, 2013
eb9959c
Merge pull request #2283 from symfony/2.2-update-urls
weaverryan Mar 15, 2013
f3c431f
[#2283] Updating URL from 2.1 to master on master branch
weaverryan Mar 15, 2013
0bec643
Merge pull request #2284 from ricardclau/2.2
weaverryan Mar 15, 2013
db4af6e
Update components/config/definition.rst
lyrixx Feb 18, 2013
67432f0
Merge pull request #2256 from WouterJ/security_paths
weaverryan Mar 17, 2013
da352a9
Adding two forgotten use statements to virtual form cookbook page
Feb 5, 2013
249d1bf
Merge branch '2.0' into 2.1
weaverryan Mar 17, 2013
1563c71
Fixed spelling mistake
Toflar Feb 15, 2013
a5ef0c8
Rewritten the --prefer-dist tip
wouterj Mar 17, 2013
d5000de
Fixed minor format issue
wouterj Mar 3, 2013
6539925
Another typo fix
wouterj Mar 3, 2013
12e94ac
Merge pull request #2288 from WouterJ/patch-19
weaverryan Mar 17, 2013
dea61db
Merge pull request #2295 from franmomu/patch-1
weaverryan Mar 17, 2013
728dec8
Merge pull request #2305 from hacfi/2.2
weaverryan Mar 18, 2013
20b272d
Added charset setting
wouterj Mar 19, 2013
76a0014
Reverting so that this can be re-done as a PR
weaverryan Mar 21, 2013
a7e64b6
Added composer changes
wouterj Mar 21, 2013
2639ae0
Document override charset
wouterj Mar 21, 2013
e130709
[components/filesystem]fixed chmod's sequence number of recursive arg…
77web Mar 23, 2013
e06de6b
[components/filesystem]fixed description for copy's third argument ac…
77web Mar 23, 2013
eae1566
added a note about the new setCurrent method on the progress helper
fabpot Mar 23, 2013
441e766
removed deprecated trust_proxy_headers docs
fabpot Mar 23, 2013
74f9a1f
removed docs on PHP parsing in YAML files
fabpot Mar 23, 2013
f886afc
updated deprecated usage of flash bags
fabpot Mar 23, 2013
6e7c0cd
removed deprecated min/max/minlength/maxlength constraints
fabpot Mar 23, 2013
ac9fbcd
updated the way form errors are customized
fabpot Mar 23, 2013
4e60117
Fixing variable name for target_path
Sgoettschkes Mar 23, 2013
3495929
[Security] Fixed encoder reference
lyrixx Mar 23, 2013
d879786
Document new framework option http_method_override
hacfi Mar 25, 2013
7b06db8
Merge pull request #2342 from fabpot/progress-helper
weaverryan Mar 25, 2013
ed39ba0
[Book][ServiceContainer] Added docs for YAML '@@' escaping
Mar 8, 2013
784b611
added documentation for the dispatchable console application
fabpot Mar 24, 2013
f9bbfcd
updated documentation for synchronized services
fabpot Mar 23, 2013
29c54c3
[Security] Fix typo in chain provider entity
lyrixx Mar 23, 2013
bbfb24e
[Security] Used more explicit name
lyrixx Mar 23, 2013
a3d5856
[Security] Fixed my_in_memory_provider
lyrixx Mar 26, 2013
2821a55
Merge pull request #2343 from fabpot/synchronized-services
weaverryan Mar 26, 2013
35fff77
[#2343] Minor tweaks to synchronized services section
weaverryan Mar 26, 2013
bf4ce18
removed deprecated cookie config options
fabpot Mar 23, 2013
a786941
removed deprecated auto_start setting
fabpot Mar 23, 2013
934531c
removed deprecated charset setting
fabpot Mar 23, 2013
18f4575
Merge branch 'patch-1' of github.com:loalf/symfony-docs into loalf-pa…
weaverryan Mar 30, 2013
a9c8ed6
[#1829] Moving serializer framework docs around - added a new cookboo…
weaverryan Mar 30, 2013
292d516
Merge branch 'khepin-dynamic_forms' into 2.1
weaverryan Mar 30, 2013
e9339bd
Update installation.rst
ericpoe Mar 30, 2013
6243847
Merge pull request #2304 from paran01d/fix_21_esi_render_example
weaverryan Mar 30, 2013
6658c97
[#2304] Finding another bad {% render syntax in 2.1
weaverryan Mar 30, 2013
cf6cbaf
Merge branch '2.0' into 2.1
weaverryan Mar 30, 2013
07c649f
Merge branch '2.1' into 2.2
weaverryan Mar 30, 2013
a2f362d
[#2308] Reverting commit as 2.1 uses Twig 1.12, which uses the new wa…
weaverryan Mar 30, 2013
2aea4bc
Merge branch '2.1' into 2.2
weaverryan Mar 30, 2013
bbdc8ce
Merge branch '2.2'
weaverryan Mar 30, 2013
5b3eb69
Merge pull request #2332 from WouterJ/doc_override_dir_21
weaverryan Mar 30, 2013
159fa7f
Merge branch '2.0' into 2.1
weaverryan Mar 30, 2013
a3f5706
Merge pull request #2341 from 77web/fix-filesystem-component-doc
weaverryan Mar 30, 2013
dbec913
Merge branch '2.0' into 2.1
weaverryan Mar 30, 2013
7e2f8b9
Merge remote-tracking branch 'origin/2.1' into 2.1
weaverryan Mar 30, 2013
0dd0042
Merge branch '2.1' into 2.2
weaverryan Mar 30, 2013
232525f
Merge branch '2.2'
weaverryan Mar 30, 2013
381e578
Merge branch 'deprecated' of github.com:fabpot/symfony-docs into fabp…
weaverryan Mar 30, 2013
851c35a
[#2344] Backporting some deprecated features which were not reflected…
weaverryan Mar 30, 2013
117e021
Merge branch '2.1' into 2.2
weaverryan Mar 30, 2013
3f481a9
Merge branch '2.2'
weaverryan Mar 30, 2013
a2dabe8
Merge branch '2.0' into 2.1
weaverryan Mar 30, 2013
75e7e4c
Merge branch '2.1' into 2.2
weaverryan Mar 30, 2013
1a41cf4
Merge branch '2.2'
weaverryan Mar 30, 2013
46ce5a4
Merge pull request #2345 from Sgoettschkes/issue2253
weaverryan Mar 30, 2013
c2b9ce2
Merge remote-tracking branch 'origin/2.1' into 2.1
weaverryan Mar 30, 2013
ce885a4
[#2345] Minor tweaks to target path
weaverryan Mar 30, 2013
bc9febe
Merge pull request #2349 from lyrixx/patch-ref-sercu
weaverryan Mar 30, 2013
8d6d6c3
Fix signature UserNotFoundException in entity_provider.rst.
marcusesa Mar 25, 2013
c7c215f
Merge pull request #2352 from fabpot/console-events
weaverryan Mar 30, 2013
5e502ea
[#2352] Minor tweaks to new console events section
weaverryan Mar 30, 2013
f48b10a
Merge branch 'feature/di-parameter-escape' of github.com:tPl0ch/symfo…
weaverryan Mar 31, 2013
40f7fdf
Merge branch 'tPl0ch-feature/di-parameter-escape' into 2.1
weaverryan Mar 31, 2013
d235378
Merge branch '2.1' into 2.2
weaverryan Mar 31, 2013
87dd61e
Merge branch '2.2'
weaverryan Mar 31, 2013
de47600
Merge branch 'http_method_override' of github.com:hacfi/symfony-docs …
weaverryan Mar 31, 2013
97ac8eb
[#2355] Moving message about the _method activation
weaverryan Mar 31, 2013
67cc5d1
Merge branch '2.2'
weaverryan Mar 31, 2013
647fd97
[#2355] Updating note about _method activation for 2.3
weaverryan Mar 31, 2013
595d6ef
Fix upload code
agiuliano Apr 2, 2013
bac7612
Fix file error
agiuliano Apr 2, 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
9 changes: 0 additions & 9 deletions book/_security-2012-6431.rst.inc

This file was deleted.

44 changes: 23 additions & 21 deletions book/controller.rst
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ Mapping a URL to a Controller
-----------------------------

The new controller returns a simple HTML page. To actually view this page
in your browser, you need to create a route, which maps a specific URL pattern
in your browser, you need to create a route, which maps a specific URL path
to the controller:

.. configuration-block::
Expand All @@ -150,13 +150,13 @@ to the controller:

# app/config/routing.yml
hello:
pattern: /hello/{name}
defaults: { _controller: AcmeHelloBundle:Hello:index }
path: /hello/{name}
defaults: { _controller: AcmeHelloBundle:Hello:index }

.. code-block:: xml

<!-- app/config/routing.xml -->
<route id="hello" pattern="/hello/{name}">
<route id="hello" path="/hello/{name}">
<default key="_controller">AcmeHelloBundle:Hello:index</default>
</route>

Expand Down Expand Up @@ -229,13 +229,13 @@ example:

# app/config/routing.yml
hello:
pattern: /hello/{first_name}/{last_name}
defaults: { _controller: AcmeHelloBundle:Hello:index, color: green }
path: /hello/{first_name}/{last_name}
defaults: { _controller: AcmeHelloBundle:Hello:index, color: green }

.. code-block:: xml

<!-- app/config/routing.xml -->
<route id="hello" pattern="/hello/{first_name}/{last_name}">
<route id="hello" path="/hello/{first_name}/{last_name}">
<default key="_controller">AcmeHelloBundle:Hello:index</default>
<default key="color">green</default>
</route>
Expand Down Expand Up @@ -325,7 +325,7 @@ working with forms, for example::
{
$form = $this->createForm(...);

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

Expand Down Expand Up @@ -632,8 +632,8 @@ from any controller::
// in another controller for another request
$foo = $session->get('foo');

// set the user locale
$session->setLocale('fr');
// use a default value if the key doesn't exist
$filters = $session->get('filters', array());

These attributes will remain on the user for the remainder of that user's
session.
Expand All @@ -655,14 +655,11 @@ For example, imagine you're processing a form submit::
{
$form = $this->createForm(...);

$form->bindRequest($this->getRequest());
$form->bind($this->getRequest());
if ($form->isValid()) {
// do some sort of processing

$this->get('session')->setFlash(
'notice',
'Your changes were saved!'
);
$this->get('session')->getFlashBag()->add('notice', 'Your changes were saved!');

return $this->redirect($this->generateUrl(...));
}
Expand All @@ -681,19 +678,19 @@ the ``notice`` message:

.. code-block:: html+jinja

{% if app.session.hasFlash('notice') %}
{% for flashMessage in app.session.flashbag.get('notice') %}
<div class="flash-notice">
{{ app.session.flash('notice') }}
{{ flashMessage }}
</div>
{% endif %}
{% endfor %}

.. code-block:: html+php

<?php if ($view['session']->hasFlash('notice')): ?>
<?php foreach ($view['session']->getFlashBag()->get('notice') as $message): ?>
<div class="flash-notice">
<?php echo $view['session']->getFlash('notice') ?>
<?php echo "<div class='flash-error'>$message</div>" ?>
</div>
<?php endif; ?>
<?php endforeach; ?>

By design, flash messages are meant to live for exactly one request (they're
"gone in a flash"). They're designed to be used across redirects exactly as
Expand Down Expand Up @@ -727,6 +724,11 @@ headers and content that's sent back to the client::
header names are normalized so that using ``Content-Type`` is equivalent
to ``content-type`` or even ``content_type``.

.. tip::

There is also a special :class:`Symfony\\Component\\HttpFoundation\\JsonResponse`
class that helps return JSON responses. See :ref:`component-http-foundation-json-response`.

.. index::
single: Controller; Request object

Expand Down
59 changes: 28 additions & 31 deletions book/doctrine.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,23 @@ Configuring the Database

Before you really begin, you'll need to configure your database connection
information. By convention, this information is usually configured in an
``app/config/parameters.ini`` file:
``app/config/parameters.yml`` file:

.. code-block:: ini
.. code-block:: yaml

; app/config/parameters.ini
[parameters]
database_driver = pdo_mysql
database_host = localhost
database_name = test_project
database_user = root
database_password = password
# app/config/parameters.yml
parameters:
database_driver: pdo_mysql
database_host: localhost
database_name: test_project
database_user: root
database_password: password

# ...

.. note::

Defining the configuration via ``parameters.ini`` is just a convention.
Defining the configuration via ``parameters.yml`` is just a convention.
The parameters defined in that file are referenced by the main configuration
file when setting up Doctrine:

Expand Down Expand Up @@ -479,7 +481,7 @@ of the bundle:
$product->setPrice('19.99');
$product->setDescription('Lorem ipsum dolor');

$em = $this->getDoctrine()->getEntityManager();
$em = $this->getDoctrine()->getManager();
$em->persist($product);
$em->flush();

Expand Down Expand Up @@ -626,7 +628,7 @@ you have a route that maps a product id to an update action in a controller::

public function updateAction($id)
{
$em = $this->getDoctrine()->getEntityManager();
$em = $this->getDoctrine()->getManager();
$product = $em->getRepository('AcmeStoreBundle:Product')->find($id);

if (!$product) {
Expand Down Expand Up @@ -692,7 +694,7 @@ Imagine that you want to query for products, but only return products that
cost more than ``19.99``, ordered from cheapest to most expensive. From inside
a controller, do the following::

$em = $this->getDoctrine()->getEntityManager();
$em = $this->getDoctrine()->getManager();
$query = $em->createQuery(
'SELECT p FROM AcmeStoreBundle:Product p WHERE p.price > :price ORDER BY p.price ASC'
)->setParameter('price', '19.99');
Expand Down Expand Up @@ -868,7 +870,7 @@ ordered alphabetically.

You can use this new method just like the default finder methods of the repository::

$em = $this->getDoctrine()->getEntityManager();
$em = $this->getDoctrine()->getManager();
$products = $em->getRepository('AcmeStoreBundle:Product')
->findAllOrderedByName();

Expand Down Expand Up @@ -1101,7 +1103,7 @@ Now you can see this new code in action! Imagine you're inside a controller::
// relate this product to the category
$product->setCategory($category);

$em = $this->getDoctrine()->getEntityManager();
$em = $this->getDoctrine()->getManager();
$em->persist($category);
$em->persist($product);
$em->flush();
Expand Down Expand Up @@ -1507,12 +1509,7 @@ Some notable or interesting tasks include:

.. code-block:: bash

$ php app/console doctrine:ensure-production-settings --no-debug --env=prod

.. caution::

Don't forget to add the ``--no-debug`` switch, because the debug flag is
always set to true, even if the environment is set to ``prod``.
$ php app/console doctrine:ensure-production-settings --env=prod

* ``doctrine:mapping:import`` - allows Doctrine to introspect an existing
database and create mapping information. For more information, see
Expand Down Expand Up @@ -1563,14 +1560,14 @@ For more information about Doctrine, see the *Doctrine* section of the

.. _`Doctrine`: http://www.doctrine-project.org/
.. _`MongoDB`: http://www.mongodb.org/
.. _`Basic Mapping Documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/2.1/reference/basic-mapping.html
.. _`Query Builder`: http://docs.doctrine-project.org/projects/doctrine-orm/en/2.1/reference/query-builder.html
.. _`Doctrine Query Language`: http://docs.doctrine-project.org/projects/doctrine-orm/en/2.1/reference/dql-doctrine-query-language.html
.. _`Association Mapping Documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/2.1/reference/association-mapping.html
.. _`Basic Mapping Documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/basic-mapping.html
.. _`Query Builder`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/query-builder.html
.. _`Doctrine Query Language`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/dql-doctrine-query-language.html
.. _`Association Mapping Documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/association-mapping.html
.. _`DateTime`: http://php.net/manual/en/class.datetime.php
.. _`Mapping Types Documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/2.1/reference/basic-mapping.html#doctrine-mapping-types
.. _`Property Mapping documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/2.1/reference/basic-mapping.html#property-mapping
.. _`Lifecycle Events documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/2.1/reference/events.html#lifecycle-events
.. _`Reserved SQL keywords documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/2.1/reference/basic-mapping.html#quoting-reserved-words
.. _`Persistent classes`: http://docs.doctrine-project.org/projects/doctrine-orm/en/2.1/reference/basic-mapping.html#persistent-classes
.. _`Property Mapping`: http://docs.doctrine-project.org/projects/doctrine-orm/en/2.1/reference/basic-mapping.html#property-mapping
.. _`Mapping Types Documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/basic-mapping.html#doctrine-mapping-types
.. _`Property Mapping documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/basic-mapping.html#property-mapping
.. _`Lifecycle Events documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/events.html#lifecycle-events
.. _`Reserved SQL keywords documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/basic-mapping.html#quoting-reserved-words
.. _`Persistent classes`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/basic-mapping.html#persistent-classes
.. _`Property Mapping`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/basic-mapping.html#property-mapping
Loading