Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Revert "minor #6478 Replace reference to the "request" service (gerry…#6498

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
wouterj wants to merge586 commits intosymfony:2.7fromwouterj:fix_merge_27
Closed
Show file tree
Hide file tree
Changes from7 commits
Commits
Show all changes
586 commits
Select commitHold shift + click to select a range
de11d3e
minor #6027 Update guard-authentication.rst (rvanginneken)
xabbuhDec 17, 2015
cb54c5e
RequestStack parameter is required since 3.0
leunggamciuDec 8, 2015
a5114d2
feature #5977 RequestStack parameter is required since 3.0 (leunggamciu)
wouterjDec 17, 2015
b2b1239
Merge branch '2.7' into 2.8
wouterjDec 18, 2015
4cd6dc2
Merge branch '2.8' into 3.0
wouterjDec 18, 2015
58979a2
Merge branch '2.7' into 2.8
wouterjDec 18, 2015
fac6023
[#5662] Update versions to 2.8
wouterjDec 18, 2015
bfc54c6
Merge branch '2.8' into 3.0
wouterjDec 18, 2015
786096e
Update Symfony version to 3.0
wouterjDec 18, 2015
2648a7d
feature #5966 Remove deprecated StringUtils from WSSE custom auth pro…
wouterjDec 18, 2015
3b2f4d0
[#5966] Removed no longer used ref target
wouterjDec 18, 2015
691616c
Remove 2.6 versionaddeds as version reached eom
wouterjJul 31, 2015
79ec09a
[Cookbook] [Security] Use UserLoaderInterface instead of UserProvider…
ogizanagiDec 9, 2015
e67deaa
Merge branch '2.7' into 2.8
wouterjDec 21, 2015
ec5671d
Merge branch '2.8' into 3.0
wouterjDec 21, 2015
d33d77a
Update location of `app/check.php` to `bin/symfony_requirements`
KevinrobDec 22, 2015
f625981
minor #6066 Update location of `app/check.php` to `bin/symfony_requir…
xabbuhDec 23, 2015
eb6ce36
Fix syntax
wouterjDec 23, 2015
afcbc51
minor #6071 Fix syntax (WouterJ)
xabbuhDec 23, 2015
02db120
minor #5993 [Cookbook] [Security] Use UserLoaderInterface instead of …
xabbuhDec 23, 2015
92610e3
[#5993] fix doubled "interface"
xabbuhDec 23, 2015
cf2fb97
Merge branch '2.7' into 2.8
xabbuhDec 23, 2015
ae53c89
Merge branch '2.8' into 3.0
xabbuhDec 23, 2015
6b6ac3d
Fix symfony version and initial add
bigs21Dec 28, 2015
1f5ee01
change app/check.php for 3.0
nanocomDec 28, 2015
36d9470
Update form_customization.rst
vudaltsovDec 29, 2015
4b30758
bug #6086 Update form_customization.rst (vudaltsov)
wouterjDec 29, 2015
83e73c2
[#6086] Use a more generic wording to avoid errors in the future
wouterjDec 29, 2015
bcc5634
Finished the rewording of the "profiler storage" article
javiereguiluzDec 30, 2015
bcbb87f
Fixed the Symfony version number
javiereguiluzDec 30, 2015
3a7624f
minor #5586 [2.8] Remove 2.6 versionaddeds as version reached eom (Wo…
xabbuhDec 31, 2015
ddd3478
Merge branch '2.7' into 2.8
xabbuhDec 31, 2015
64f8a1e
Merge branch '2.8' into 3.0
xabbuhDec 31, 2015
6077f91
[Form] entry_type option: replace "in favor" misuses
ogizanagiDec 14, 2015
46ff6f1
minor #6014 [2.8][Form] entry_type option: replace "in favor" misuses…
xabbuhJan 4, 2016
874c840
Removed deprecated methods from VoterInterface
edefimovJan 4, 2016
fcbcf1c
Remove repetition in text
dominikhajdukJan 4, 2016
10ae1f0
Merge branch '2.7' into 2.8
xabbuhJan 4, 2016
889db17
minor #6106 Remove repetition in text (dominikhajduk)
xabbuhJan 4, 2016
6eeb61e
Merge branch '2.8' into 3.0
xabbuhJan 4, 2016
2d72f3e
[Form] remove the getName() function as it is deprecated
aybbouJan 4, 2016
5868190
Documented the ability of define service decoration priority
dostenAug 5, 2015
051f050
[Security][Guard] Fixed a typo
jeremyFreeAgentJan 6, 2016
3f7191f
minor #6105 Removed deprecated methods from VoterInterface (edefimov)
xabbuhJan 6, 2016
5aa34c7
minor #6110 [Security][Guard] Fixed a typo (jeremyFreeAgent)
xabbuhJan 6, 2016
172b72b
Merge branch '2.7' into 2.8
xabbuhJan 6, 2016
c7767ad
Merge branch '2.8' into 3.0
xabbuhJan 6, 2016
75edc24
[Form] Fix syntax error in code snippet
Jan 7, 2016
bd29146
bug #6115 [Form] Fix syntax error in code snippet (valisj)
wouterjJan 7, 2016
32eddf7
Merge branch '2.7' into 2.8
wouterjJan 7, 2016
9df83c0
Merge branch '2.8' into 3.0
wouterjJan 7, 2016
35c2b00
fix README requirements link
garakJan 8, 2016
acbadd2
[MicroKernel] Fixed the display of a code block
jeremyFreeAgentJan 8, 2016
fb5ad59
minor #6121 [MicroKernel] Fixed the display of a code block (jeremyFr…
wouterjJan 9, 2016
f95ca48
Merge branch '2.7' into 2.8
xabbuhJan 10, 2016
be32e96
minor #6120 fix README requirements link (garak)
xabbuhJan 10, 2016
3775fc0
Merge branch '2.8' into 3.0
xabbuhJan 10, 2016
e9a92af
[#6120] remove unneeded link to readme file
xabbuhJan 10, 2016
b602b9c
Merge branch '2.7' into 2.8
xabbuhJan 11, 2016
66b2469
Merge branch '2.8' into 3.0
xabbuhJan 11, 2016
ca8916c
remove trailing whitespace
xabbuhJan 11, 2016
84ded6c
Merge branch '2.7' into 2.8
xabbuhJan 11, 2016
2db6e18
Merge branch '2.8' into 3.0
xabbuhJan 11, 2016
6ea7370
Added new links to the Symfony screencast series at KnpU
javiereguiluzJan 11, 2016
f18a1aa
Update directory permissions to make var/ writable
andreromJan 12, 2016
d6456ad
Update dir permissions to reflect var being writable
andreromJan 12, 2016
ced63f2
Update the doc to change a deprecated use case
ChristopheBoucautJan 13, 2016
8f6038b
minor #6139 Update the doc to change a deprecated use case (Christoph…
xabbuhJan 13, 2016
c77773a
minor #6129 Added new links to the Symfony screencast series at KnpU …
xabbuhJan 13, 2016
2bc4f55
minor #6108 [Form] remove the getName() function as it is deprecated …
xabbuhJan 13, 2016
1c1c0e4
[#6108] remove remaining references to getName()
xabbuhJan 13, 2016
61a4ae4
feature #5600 [DependencyInjection] Documented the ability of define …
xabbuhJan 13, 2016
14d2afb
feature #6136 Update directory permissions to make var/ writable (and…
weaverryanJan 16, 2016
1e1ecc4
Removed doc about getting original parameter value from ParameterBag
edefimovDec 27, 2015
24e2da6
minor #6080 Removed doc about getting original parameter value from P…
xabbuhJan 18, 2016
b6b6a39
[Security][Guard] Completed start method signature
jeremyFreeAgentJan 11, 2016
2d31a0f
minor #6130 [Security][Guard] Completed start method signature (jerem…
xabbuhJan 18, 2016
f792232
Merge branch '2.7' into 2.8
xabbuhJan 18, 2016
f31a965
Merge branch '2.8' into 3.0
xabbuhJan 18, 2016
fc32f7f
Reference to session + Corrected sample code char
sfdumiJan 14, 2016
e9e5b9c
minor #6149 Reference to session + Corrected sample code char (sfdumi)
xabbuhJan 18, 2016
f398b03
Merge branch '2.7' into 2.8
xabbuhJan 18, 2016
62a8755
minor #6082 change app/check.php for 3.0 (nanocom)
xabbuhJan 18, 2016
c97d5bf
Merge branch '2.8' into 3.0
xabbuhJan 18, 2016
5d1806e
Fix by_reference deprecated FormType::class
Nem0frJan 19, 2016
8e91949
minor #6166 Fix by_reference deprecated FormType::class (nemo-)
xabbuhJan 19, 2016
9944eca
Latest demo has no bin folder
Jace25Jan 25, 2016
15003d8
Merge branch '2.7' into 2.8
xabbuhJan 27, 2016
8b31d63
Merge branch '2.8' into 3.0
xabbuhJan 27, 2016
b385935
minor #6182 Latest demo has no bin folder (Jace25)
xabbuhJan 27, 2016
ab2f9aa
Expected: semicolon
cn0047Jan 29, 2016
50286bc
minor #6204 Expected: semicolon (cn007b)
xabbuhJan 29, 2016
50c3fb2
[#6204] fix CS
xabbuhJan 29, 2016
53726dd
Merge branch '2.7' into 2.8
xabbuhJan 30, 2016
beb0d3a
Merge branch '2.8' into 3.0
xabbuhJan 30, 2016
3d1e8a7
Merge branch '2.7' into 2.8
xabbuhJan 31, 2016
372704b
Revert "revert form login CSRF changes on wrong branch"
xabbuhJan 31, 2016
fcdb82b
fix types
garakJan 28, 2016
bce32e2
minor #6199 fix types (garak)
xabbuhJan 31, 2016
03c6605
Merge branch '2.8' into 3.0
xabbuhFeb 1, 2016
211f3a6
add versionadded directive for range type
xabbuhFeb 4, 2016
41e4f30
minor #6225 [Reference][Forms] add versionadded directive for range t…
xabbuhFeb 5, 2016
97ef850
Remove 2.3.* from composer snippets in the form component doc
NicofumaFeb 1, 2016
06c76aa
minor #6211 Remove 2.3.* from composer snippets in the form component…
xabbuhFeb 5, 2016
06ca405
change translation getMessages() to getCatalogue()
Jan 19, 2016
ab57eed
minor #6170 change translation getMessages() to getCatalogue() (snoek09)
xabbuhFeb 5, 2016
0e288a2
removed unnecesary exception form repository
gondoFeb 5, 2016
f7adcfa
minor #6228 removed unnecessary exception from repository (gondo)
xabbuhFeb 6, 2016
bb96dc6
Update form_collections.rst
insekticidFeb 1, 2016
8e8144f
minor #6213 Update form_collections.rst (insekticid)
xabbuhFeb 6, 2016
0d92394
Merge branch '2.7' into 2.8
xabbuhFeb 6, 2016
f42057a
Merge branch '2.8' into 3.0
xabbuhFeb 6, 2016
946c5c2
Added note about the hash_equals polyfill
wouterjDec 18, 2015
53febf0
minor #6044 Added note about the hash_equals polyfill (WouterJ)
wouterjFeb 6, 2016
906d55a
Update Testing Form Types article for 2.8 refactorings
wouterjDec 21, 2015
e821b97
feature #6058 Update Testing Form Types article for 2.8 refactorings …
wouterjFeb 6, 2016
7a4d9fc
[FrameworkBundle] Name converter of Serializer
dunglasMay 29, 2015
41d43dd
feature #5483 [FrameworkBundle] Name converter of Serializer (dunglas)
wouterjFeb 6, 2016
e901fbc
bug #6081 [cookbook New project] Fix symfony version and initial add …
wouterjFeb 6, 2016
353df25
Document automatic registration of extension compiler passes
wouterjNov 28, 2015
075a81d
feature #5920 Document automatic registration of extension compiler p…
wouterjFeb 6, 2016
b56880b
Merge branch '2.7' into 2.8
wouterjFeb 6, 2016
16cc4bc
Merge branch '2.8' into 3.0
wouterjFeb 6, 2016
fe2e8e7
Merge branch '2.7' into 2.8
wouterjFeb 6, 2016
2c9b1ec
Merge branch '2.8' into 3.0
wouterjFeb 6, 2016
89b20a8
[Cookbook, Security] Added user_checkers.rst
Jul 16, 2015
47f6b3b
feature #5530 [Cookbook, Security] Added user_checkers.rst (iltar)
xabbuhFeb 7, 2016
dd8585d
[#5330] some tweaks
xabbuhFeb 7, 2016
be54971
#6232 update forms as services section
backbone87Feb 6, 2016
99c8abe
minor #6235 #6232 update forms as services section (backbone87)
xabbuhFeb 7, 2016
bcc1cc4
minor #6090 Reworded the article about profiler storage (xavierleune,…
xabbuhFeb 7, 2016
35a520d
[#6090] some small tweaks
xabbuhFeb 7, 2016
f1ba10e
Merge branch '2.7' into 2.8
wouterjFeb 7, 2016
eb1c1ae
Added December changelog
wouterjFeb 7, 2016
cdb8b24
Merge branch '2.8' into 3.0
wouterjFeb 7, 2016
4ffe998
Added December changelog
wouterjFeb 7, 2016
2651431
Merge branch '2.7' into 2.8
wouterjFeb 7, 2016
9fcd140
Added January changelog
wouterjFeb 7, 2016
f91bcef
Merge branch '2.8' into 3.0
wouterjFeb 7, 2016
026d9ed
Added January changelog
wouterjFeb 7, 2016
fc3c9f3
Merge branch '2.7' into 2.8
wouterjFeb 7, 2016
1d1ec81
Merge branch '2.7' into 2.8
wouterjFeb 7, 2016
fe1dfc7
Merge branch '2.8' into 3.0
wouterjFeb 7, 2016
266f7bf
Fix syntax
wouterjFeb 7, 2016
52f14f8
Merge branch '2.7' into 2.8
xabbuhFeb 7, 2016
811671d
Merge branch '2.8' into 3.0
xabbuhFeb 7, 2016
7ede792
Merge branch '2.7' into 2.8
wouterjFeb 8, 2016
d9f6264
Merge branch '2.8' into 3.0
wouterjFeb 8, 2016
f8b560d
Removed all 2.x versionadded directives
wouterjFeb 7, 2016
b986eb1
minor #6242 Removed all 2.x versionadded directives (WouterJ)
xabbuhFeb 9, 2016
a447862
Merge branch '2.7' into 2.8
xabbuhFeb 9, 2016
cf9ce3d
Merge branch '2.8' into 3.0
xabbuhFeb 9, 2016
121196d
[2.8] Add "How to Use Multiple Guard Authenticators" cookbook documen…
marek-pietrzak-tgNov 12, 2015
f0c0fac
feature #5886 [2.8] Add "How to Use Multiple Guard Authenticators" co…
xabbuhFeb 10, 2016
63c57dd
[Security] Include guard firewall configuration sample.
calinpristavuFeb 10, 2016
be7efd6
minor #6253 [Security] Include guard firewall configuration sample. (…
xabbuhFeb 10, 2016
995bd4f
[DependencyInjection] Autowiring doc
dunglasDec 16, 2015
fb7f15e
feature #6032 [DependencyInjection] Autowiring doc (dunglas)
xabbuhFeb 10, 2016
d1e3024
[#6032] some tweaks for the autowiring feature
xabbuhFeb 10, 2016
c00626c
Merge branch '2.7' into 2.8
xabbuhFeb 10, 2016
6b3f5f4
Merge branch '2.8' into 3.0
xabbuhFeb 10, 2016
0103364
[#6032] fix link to ROT13 description
xabbuhFeb 10, 2016
aa33bfa
[Components][Form] remove outdated caution
xabbuhFeb 10, 2016
4924513
minor #6257 [Components][Form] remove outdated caution (xabbuh)
wouterjFeb 10, 2016
6ef2099
reflect behavior changes in cache generation
xabbuhFeb 11, 2016
61ef5bb
remove dot in front of colon
xabbuhFeb 15, 2016
8fe4609
minor #6277 remove dot in front of colon (xabbuh)
xabbuhFeb 15, 2016
c440050
[HttpFoundation] Fix typo for ParameterBag getters
rendler-denisFeb 17, 2016
dbee0df
Fix setting permission for var subdirectories
vodaFeb 19, 2016
11e4532
minor #6263 [Cookbook][Debugging] reflect behavior changes in cache g…
weaverryanFeb 21, 2016
3d3bac0
[#6263] Javier's comments
weaverryanFeb 21, 2016
657ba99
Merge branch '2.8' into 3.0
weaverryanFeb 21, 2016
8222639
bug #6292 Fix setting permission for var subdirectories (voda)
weaverryanFeb 21, 2016
06eee41
Update dependency_injection.rst because it has an error.
joserprietoFeb 23, 2016
a499d12
minor #6298 Update dependency_injection.rst because it has an error. …
xabbuhFeb 27, 2016
dcb5a54
Removed True and False constraints from reference
edefimovFeb 23, 2016
581f46c
minor #6299 Removed True and False constraints from reference (edefimov)
xabbuhFeb 27, 2016
bcba4f4
Remove "paamayim nekudotayim" breaking configuration blocks in DI aut…
eXtremeMar 2, 2016
bfc7976
Add Auto-wiring keyword
theofidryMar 2, 2016
1a6e4c5
Missing svn:ignore
Mar 4, 2016
fb4c526
bug #6326 Missing svn:ignore (f-plante)
wouterjMar 5, 2016
25b3aed
Update user_checkers.rst
gailimovMar 2, 2016
e29233c
bug #6324 Fixed UserCheckerInterface importing (VIs-a-vis)
wouterjMar 5, 2016
7874bd0
minor #6286 [HttpFoundation] Fix typo for ParameterBag getters - 3.0 …
wouterjMar 5, 2016
28082dc
minor #6323 [DependencyInjection] Add Autowiring keyword (theofidry)
wouterjMar 5, 2016
0f32eef
bug #6322 [DependencyInjection] fix autowiring docs (eXtreme)
wouterjMar 5, 2016
8e08e35
Merge branch '2.7' into 2.8
wouterjMar 5, 2016
11eb093
Added February changelog
wouterjMar 5, 2016
778a7f9
Fix faulty merge
wouterjMar 5, 2016
9b0dccf
Merge branch '2.8' into 3.0
wouterjMar 5, 2016
41393d9
Added February changelog
wouterjMar 5, 2016
8e59931
Merge branch '2.7' into 2.8
wouterjMar 5, 2016
ab4bfe5
Merge branch '2.8' into 3.0
wouterjMar 5, 2016
f82b32e
[HttpFoundation] ParameterBag::get() $deep param
Oliboy50Mar 6, 2016
d85f13a
Merge branch '2.7' into 2.8
weaverryanMar 6, 2016
230b4f6
Merge branch '2.8' into 3.0
weaverryanMar 6, 2016
dcd1126
Update Doctrine UTF8 docs
mcfedrFeb 15, 2016
01133fd
Merge branch '2.7' into 2.8
wouterjMar 9, 2016
a297099
Merge branch '2.8' into 3.0
wouterjMar 9, 2016
68650b8
Fix reference to app folder
kainjowMar 11, 2016
2e03a7e
minor #6350 Fix reference to app folder (kainjow)
xabbuhMar 11, 2016
e87e9ee
Merge branch '2.7' into 2.8
xabbuhMar 11, 2016
f24b8f8
Merge branch '2.8' into 3.0
xabbuhMar 11, 2016
993fc45
Made list of types more consistent
a-astMar 14, 2016
aa6fb92
Update "bootstrap.php.cache" to "autoload.php"
guilliamxavierMar 16, 2016
24c2404
feature #6274 Update Doctrine UTF8 docs (mcfedr)
weaverryanMar 17, 2016
c0a441e
bug #6368 [cookbook] Made list of form types more consistent (AAstakhov)
weaverryanMar 17, 2016
b20e1ca
bug #6377 Update "bootstrap.php.cache" to "autoload.php" (guilliamxav…
weaverryanMar 17, 2016
09bc39e
Reworded the example about $deep param
javiereguiluzMar 20, 2016
fba2da2
Calling the parent implementation is mandatory.
corphiMar 17, 2016
c9b54db
minor #6381 [Form] [Cookbook] Correctly setup unit tests with depende…
xabbuhMar 26, 2016
8666655
minor #6390 Reworded the example about $deep param (Oliboy50, javiere…
xabbuhMar 26, 2016
a064e17
Merge branch '2.7' into 2.8
xabbuhMar 26, 2016
d2b6569
Merge branch '2.8' into 3.0
xabbuhMar 26, 2016
23abecc
Update 'date' to DateType::class in form.rst
linaoriMar 29, 2016
6fb77fb
Merge branch '2.7' into 2.8
xabbuhMar 30, 2016
31c49b8
Merge branch '2.8' into 3.0
xabbuhMar 30, 2016
5928110
minor #6409 Update 'date' to DateType::class in form.rst (iltar)
xabbuhMar 30, 2016
6c42309
fixed yaml config error
RickieLApr 5, 2016
fe40a49
minor #6432 fixed yaml config error (RickieL)
xabbuhApr 6, 2016
63ee83e
Merge branch '2.7' into 2.8
wouterjApr 9, 2016
501c208
Added March changelog
wouterjApr 9, 2016
d380d37
Merge branch '2.8' into 3.0
wouterjApr 9, 2016
e4650a5
Added March changelog
wouterjApr 9, 2016
9b0ec35
Merge branch '2.3' into 2.8
weaverryanApr 12, 2016
fb09632
Merge branch '2.8' into 3.0
weaverryanApr 12, 2016
cf17c2c
Merge branch '2.7' into 2.8
weaverryanApr 12, 2016
84dbdca
Merge branch '2.8' into 3.0
weaverryanApr 12, 2016
28e6be5
[#6449] Removing choices_as_values on merge
weaverryanApr 12, 2016
cba307c
Merge branch '2.7' into 2.8
weaverryanApr 12, 2016
b7c70e6
Merge branch '2.8' into 3.0
weaverryanApr 12, 2016
164db85
Merge branch '2.7' into 2.8
weaverryanApr 12, 2016
ffb40b9
Merge branch '2.8' into 3.0
weaverryanApr 12, 2016
5ba5224
fix broken merge
xabbuhApr 13, 2016
5726c9b
minor #6471 fix broken merge (xabbuh)
xabbuhApr 13, 2016
a9c9865
Merge branch '2.8' into 3.0
xabbuhApr 13, 2016
bf596c6
Replace reference to the "request" service
Apr 14, 2016
3ae6616
Update php.rst
Apr 16, 2016
2ee6a4a
Update authorization.rst
mantuloApr 12, 2016
7819f9e
bug #6460 Update authorization.rst (mantulo)
wouterjApr 18, 2016
139e2e7
minor #6478 Replace reference to the "request" service (gerryvdm)
wouterjApr 18, 2016
fefc8a0
minor #6479 Update php.rst (carlos-granados)
wouterjApr 18, 2016
ae8a340
Remove reference to Symfony2 in request-flow.png
Apr 16, 2016
b2df969
minor #6481 Remove reference to Symfony2 in request-flow.png (Daniel …
wouterjApr 18, 2016
f7950ab
fixed wrong secret string in array examples
OskarStarkApr 16, 2016
7c1c926
bug #6482 fixed wrong secret string in array examples (OskarStark)
wouterjApr 18, 2016
cfcd8df
Fix typo: signifcantly => significantly
ifdatticApr 17, 2016
1653948
bug #6483 Fix typo: signifcantly => significantly (ifdattic)
wouterjApr 18, 2016
cf61d87
Merge branch '2.3' into 2.7
wouterjApr 18, 2016
8da5a30
Revert "minor #6478 Replace reference to the "request" service (gerry…
wouterjApr 20, 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
8 changes: 4 additions & 4 deletionsbook/doctrine.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -953,8 +953,8 @@ To relate the ``Category`` and ``Product`` entities, start by creating a
products:
targetEntity: Product
mappedBy: category
# don't forget toinit the collection in the __construct() method
# of the entity
# Don't forget toinitialize the collection in
# the __construct() method of the entity

.. code-block:: xml

Expand DownExpand Up@@ -1096,7 +1096,7 @@ table, and ``product.category_id`` column, and new foreign key:

.. note::

Thistask should only be really used during development. For a more robust
Thiscommand should only be used during development. For a more robust
method of systematically updating your production database, read about
`migrations`_.

Expand DownExpand Up@@ -1187,7 +1187,7 @@ You can also query in the other direction::
// ...
}

In this case, the same thingsoccurs: you first query out for a single ``Category``
In this case, the same thingsoccur: you first query out for a single ``Category``
object, and then Doctrine makes a second query to retrieve the related ``Product``
objects, but only once/if you ask for them (i.e. when you call ``->getProducts()``).
The ``$products`` variable is an array of all ``Product`` objects that relate
Expand Down
17 changes: 11 additions & 6 deletionsbook/forms.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -223,8 +223,8 @@ Handling Form Submissions

The second job of a form is to translate user-submitted data back to the
properties of an object. To make this happen, the submitted data from the
user must be written into theform. Add the following functionality to your
controller::
user must be written into theForm object. Add the following functionality to
yourcontroller::

// ...
use Symfony\Component\HttpFoundation\Request;
Expand DownExpand Up@@ -694,9 +694,14 @@ the documentation for each type.
The most common option is the ``required`` option, which can be applied to
any field. By default, the ``required`` option is set to ``true``, meaning
that HTML5-ready browsers will apply client-side validation if the field
is left blank. If you don't want this behavior, either set the ``required``
option on your field to ``false`` or
:ref:`disable HTML5 validation <book-forms-html5-validation-disable>`.
is left blank. If you don't want this behavior, either
:ref:`disable HTML5 validation <book-forms-html5-validation-disable>`
or set the ``required`` option on your field to ``false``::

->add('dueDate', 'date', array(
'widget' => 'single_text',
'required' => false
))

Also note that setting the ``required`` option to ``true`` will **not**
result in server-side validation to be applied. In other words, if a
Expand DownExpand Up@@ -935,7 +940,7 @@ specify it:

Some field types have additional rendering options that can be passed
to the widget. These options are documented with each type, but one common
options is ``attr``, which allows you to modify attributes on the form element.
option is ``attr``, which allows you to modify attributes on the form element.
The following would add the ``task_field`` class to the rendered input text
field:

Expand Down
6 changes: 3 additions & 3 deletionsbook/templating.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -201,7 +201,7 @@ First, build a base layout file:
<!DOCTYPE html>
<html>
<head>
<metahttp-equiv="Content-Type" content="text/html; charset=utf-8" />
<metacharset="UTF-8">
<title>{% block title %}Test Application{% endblock %}</title>
</head>
<body>
Expand All@@ -226,7 +226,7 @@ First, build a base layout file:
<!DOCTYPE html>
<html>
<head>
<metahttp-equiv="Content-Type" content="text/html; charset=utf-8" />
<metacharset="UTF-8">
<title><?php $view['slots']->output('title', 'Test Application') ?></title>
</head>
<body>
Expand DownExpand Up@@ -311,7 +311,7 @@ output might look like this:
<!DOCTYPE html>
<html>
<head>
<metahttp-equiv="Content-Type" content="text/html; charset=utf-8" />
<metacharset="UTF-8">
<title>My cool blog posts</title>
</head>
<body>
Expand Down
3 changes: 1 addition & 2 deletionscontributing/code/patches.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -116,8 +116,7 @@ work:
* ``2.3``, if you are fixing a bug for an existing feature (you may have
to choose a higher branch if the feature you are fixing was introduced
in a later version);
* ``2.8``, if you are adding a new feature which is backward compatible;
* ``master``, if you are adding a new and backward incompatible feature.
* ``master``, if you are adding a new feature.

.. note::

Expand Down
4 changes: 2 additions & 2 deletionscookbook/assetic/asset_management.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -11,9 +11,9 @@ Starting from Symfony 2.8, Assetic is no longer included by default in the
Symfony Standard Edition. Before using any of its features, install the
AsseticBundle executing this console command in your project:

.. code-block:: bash
.. code-block:: bash

$ composer require symfony/assetic-bundle
$ composer require symfony/assetic-bundle

Then, enable the bundle in the ``AppKernel.php`` file of your Symfony application::

Expand Down
14 changes: 8 additions & 6 deletionscookbook/form/dynamic_form_modification.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -374,13 +374,15 @@ you need to register it as a service and tag it with :ref:`form.type <dic-tags-f
.. code-block:: php

// app/config/config.php
$definition = new Definition('AppBundle\Form\Type\FriendMessageFormType');
$definition->addTag('form.type');
$container->setDefinition(
'app.form.friend_message',
$definition,
array('security.token_storage')
use Symfony\Component\DependencyInjection\Reference;

$definition = new Definition(
'AppBundle\Form\Type\FriendMessageFormType',
array(new Reference('security.token_storage'))
);
$definition->addTag('form.type');

$container->setDefinition('app.form.friend_message', $definition);

In a controller that extends the :class:`Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller`
class, you can simply call::
Expand Down
52 changes: 31 additions & 21 deletionscookbook/form/form_customization.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -264,7 +264,7 @@ directly in the template that's actually rendering the form.

.. code-block:: html+twig

{% extends '::base.html.twig' %}
{% extends 'base.html.twig' %}

{% form_theme form _self %}

Expand DownExpand Up@@ -303,7 +303,7 @@ can now re-use the form customization across many templates:

.. code-block:: html+twig

{# app/Resources/views/Form/fields.html.twig #}
{# app/Resources/views/form/fields.html.twig #}
{% block integer_widget %}
<div class="integer_widget">
{% set type = type|default('number') %}
Expand All@@ -319,7 +319,7 @@ tell Symfony to use the template via the ``form_theme`` tag:

.. code-block:: html+twig

{% form_theme form 'AppBundle:Form:fields.html.twig' %}
{% form_theme form 'form/fields.html.twig' %}

{{ form_widget(form.age) }}

Expand All@@ -335,13 +335,12 @@ name of all the templates as an array using the ``with`` keyword:

.. code-block:: html+twig

{% form_theme form with ['::common.html.twig', ':Form:fields.html.twig',
'AppBundle:Form:fields.html.twig'] %}
{% form_theme form with ['common.html.twig', 'form/fields.html.twig'] %}

{# ... #}

The templates can be locatedat different bundles and they can even be stored
at the global ``app/Resources/views/`` directory.
The templates canalsobe locatedin different bundles, use the functional name
to reference these templates, e.g. ``AcmeFormExtraBundle:form:fields.html.twig``.

Child Forms
...........
Expand All@@ -350,16 +349,16 @@ You can also apply a form theme to a specific child of your form:

.. code-block:: html+twig

{% form_theme form.child 'AppBundle:Form:fields.html.twig' %}
{% form_theme form.child 'form/fields.html.twig' %}

This is useful when you want to have a custom theme for a nested form that's
different than the one of your main form. Just specify both your themes:

.. code-block:: html+twig

{% form_theme form 'AppBundle:Form:fields.html.twig' %}
{% form_theme form 'form/fields.html.twig' %}

{% form_theme form.child 'AppBundle:Form:fields_child.html.twig' %}
{% form_theme form.child 'form/fields_child.html.twig' %}

.. _cookbook-form-php-theming:

Expand All@@ -375,9 +374,13 @@ file in order to customize the ``integer_widget`` fragment.

.. code-block:: html+php

<!-- app/Resources/views/Form/integer_widget.html.php -->
<!-- app/Resources/views/form/integer_widget.html.php -->
<div class="integer_widget">
<?php echo $view['form']->block($form, 'form_widget_simple', array('type' => isset($type) ? $type : "number")) ?>
<?php echo $view['form']->block(
$form,
'form_widget_simple',
array('type' => isset($type) ? $type : "number")
) ?>
</div>

Now that you've created the customized form template, you need to tell Symfony
Expand All@@ -388,7 +391,7 @@ tell Symfony to use the theme via the ``setTheme`` helper method:

.. code-block:: php

<?php $view['form']->setTheme($form, array('AppBundle:Form')); ?>
<?php $view['form']->setTheme($form, array(':form')); ?>

<?php $view['form']->widget($form['age']) ?>

Expand All@@ -401,7 +404,14 @@ method:

.. code-block:: php

<?php $view['form']->setTheme($form['child'], 'AppBundle:Form/Child'); ?>
<?php $view['form']->setTheme($form['child'], ':form'); ?>

.. note::

The ``:form`` syntax is based on the functional names for templates:
``Bundle:Directory``. As the form directory lives in the
``app/Resources/views`` directory, the ``Bundle`` part is empty, resulting
in ``:form``.

.. _cookbook-form-twig-import-base-blocks:

Expand DownExpand Up@@ -475,8 +485,8 @@ Twig
~~~~

By using the following configuration, any customized form blocks inside the
``AppBundle:Form:fields.html.twig`` template will be used globally when a
form isrendered.
``form/fields.html.twig`` template will be used globally when a form is
rendered.

.. configuration-block::

Expand All@@ -485,14 +495,14 @@ form is rendered.
# app/config/config.yml
twig:
form_themes:
- 'AppBundle:Form:fields.html.twig'
- 'form/fields.html.twig'
# ...

.. code-block:: xml

<!-- app/config/config.xml -->
<twig:config>
<twig:form-theme>AppBundle:Form:fields.html.twig</twig:form-theme>
<twig:form-theme>form/fields.html.twig</twig:form-theme>
<!-- ... -->
</twig:config>

Expand All@@ -501,7 +511,7 @@ form is rendered.
// app/config/config.php
$container->loadFromExtension('twig', array(
'form_themes' => array(
'AppBundle:Form:fields.html.twig',
'form/fields.html.twig',
),

// ...
Expand DownExpand Up@@ -677,7 +687,7 @@ customize the ``name`` field only:
.. code-block:: html+php

<!-- Main template -->
<?php echo $view['form']->setTheme($form, array('AppBundle:Form')); ?>
<?php echo $view['form']->setTheme($form, array(':form')); ?>

<?php echo $view['form']->widget($form['name']); ?>

Expand DownExpand Up@@ -735,7 +745,7 @@ You can also override the markup for an entire field row using the same method:
.. code-block:: html+php

<!-- Main template -->
<?php echo $view['form']->setTheme($form, array('AppBundle:Form')); ?>
<?php echo $view['form']->setTheme($form, array(':form')); ?>

<?php echo $view['form']->row($form['name']); ?>

Expand Down
36 changes: 8 additions & 28 deletionscookbook/security/entity_provider.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -422,20 +422,18 @@ both are unique in the database. Unfortunately, the native entity provider
is only able to handle querying via a single property on the user.

To do this, make your ``UserRepository`` implement a special
:class:`Symfony\\Component\\Security\\Core\\User\\UserProviderInterface`. This
interface requires three methods: ``loadUserByUsername($username)``,
``refreshUser(UserInterface $user)``, and ``supportsClass($class)``::
:class:`Symfony\\Bridge\\Doctrine\\Security\\User\\UserLoaderInterface`. This
interface only requires one method: ``loadUserByUsername($username)``::

// src/AppBundle/Entity/UserRepository.php
namespace AppBundle\Entity;

use Symfony\Bridge\Doctrine\Security\User\UserLoaderInterface;
use Symfony\Component\Security\Core\User\UserInterface;
use Symfony\Component\Security\Core\User\UserProviderInterface;
use Symfony\Component\Security\Core\Exception\UsernameNotFoundException;
use Symfony\Component\Security\Core\Exception\UnsupportedUserException;
use Doctrine\ORM\EntityRepository;

class UserRepository extends EntityRepository implementsUserProviderInterface
class UserRepository extends EntityRepository implementsUserLoaderInterface
{
public function loadUserByUsername($username)
{
Expand All@@ -456,30 +454,12 @@ interface requires three methods: ``loadUserByUsername($username)``,

return $user;
}

public function refreshUser(UserInterface $user)
{
$class = get_class($user);
if (!$this->supportsClass($class)) {
throw new UnsupportedUserException(
sprintf(
'Instances of "%s" are not supported.',
$class
)
);
}

return $this->find($user->getId());
}

public function supportsClass($class)
{
return $this->getEntityName() === $class
|| is_subclass_of($class, $this->getEntityName());
}
}

For more details on these methods, see :class:`Symfony\\Component\\Security\\Core\\User\\UserProviderInterface`.
.. versionadded:: 2.8
The :class:`Symfony\\Bridge\\Doctrine\\Security\\User\\UserLoaderInterface`
was introduced in 2.8. Prior to Symfony 2.8, you had to implement
``Symfony\Component\Security\Core\User\UserProviderInterface``.

.. tip::

Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -7,7 +7,6 @@ empty class, you might be tempted to move some code from the front controller
to it::

// example.com/src/Simplex/Framework.php

namespace Simplex;

use Symfony\Component\Routing;
Expand All@@ -33,7 +32,6 @@ to it::
The front controller code would become more concise::

// example.com/web/front.php

require_once __DIR__.'/../vendor/autoload.php';

use Symfony\Component\HttpFoundation\Request;
Expand DownExpand Up@@ -94,7 +92,6 @@ container:
Create a new file to host the dependency injection container configuration::

// example.com/src/container.php

use Symfony\Component\DependencyInjection;
use Symfony\Component\DependencyInjection\Reference;

Expand DownExpand Up@@ -147,7 +144,6 @@ it in other object definitions.
The front controller is now only about wiring everything together::

// example.com/web/front.php

require_once __DIR__.'/../vendor/autoload.php';

use Symfony\Component\HttpFoundation\Request;
Expand All@@ -165,7 +161,6 @@ As all the objects are now created in the dependency injection container, the
framework code should be the previous simple version::

// example.com/src/Simplex/Framework.php

namespace Simplex;

use Symfony\Component\HttpKernel\HttpKernel;
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp