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

remove documentation of not supported "verbose" option value#6492

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
TobiasXy wants to merge2,694 commits intosymfony:2.3fromTobiasXy:remove_verbose_value
Closed
Show file tree
Hide file tree
Changes fromall commits
Commits
Show all changes
2694 commits
Select commitHold shift + click to select a range
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
cf0a650
fixes #5971
vincentaubertDec 26, 2015
03c6605
Merge branch '2.8' into 3.0
xabbuhFeb 1, 2016
ce45b71
[book] fixes typo about redirect status codes in the controller chapter.
Feb 3, 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
26d8f84
minor #6220 [book] fixes typo about redirect status codes in the cont…
xabbuhFeb 6, 2016
bb96dc6
Update form_collections.rst
insekticidFeb 1, 2016
8e8144f
minor #6213 Update form_collections.rst (insekticid)
xabbuhFeb 6, 2016
129d853
Merge branch '2.3' into 2.7
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
a31dcc0
feature #5642 Documented label_format option (WouterJ)
wouterjFeb 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
fc041c5
feature #6077 fixes #5971 (vincentaubert)
wouterjFeb 6, 2016
383401d
[#6077] Fix code to not use deprecated classes
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
5957927
Update entity.rst
merorafaelAug 10, 2015
3ad5111
Travis fix
merorafaelAug 10, 2015
2fa2386
choice_translation_domain doc fix
merorafaelAug 31, 2015
92998d8
translation_domain doc fix
merorafaelAug 31, 2015
4b92e88
Document translation_domain setting for choice fields
wouterjFeb 6, 2016
d1e109e
Merge branch '2.3' into 2.7
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
70852c8
add separate placeholder examples for birthday, datetime and time type
Jan 30, 2016
a1d0353
minor #6206 add separate placeholder examples for birthday, datetime …
xabbuhFeb 6, 2016
0baa317
use literals for external class names
xabbuhFeb 6, 2016
47704a7
minor #6237 use literals for external class names (xabbuh)
wouterjFeb 6, 2016
309d29f
Merge branch '2.3' into 2.7
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
07f8e40
[components][expression_language] Add doc for backslashes
zerustechJul 29, 2015
31d74e5
Add a caution about backslash escaping
wouterjFeb 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
3165c70
minor #6241 [ExpressionLanguage] Add caution about backslash handling…
xabbuhFeb 7, 2016
bcc1cc4
minor #6090 Reworded the article about profiler storage (xavierleune,…
xabbuhFeb 7, 2016
35a520d
[#6090] some small tweaks
xabbuhFeb 7, 2016
6544665
Merge branch '2.3' into 2.7
wouterjFeb 7, 2016
a5055a5
Added December changelog
wouterjFeb 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
ff748f6
Merge branch '2.3' into 2.7
wouterjFeb 7, 2016
03e3259
Added January 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
79995ee
Merge branch '2.3' into 2.7
wouterjFeb 7, 2016
fc3c9f3
Merge branch '2.7' into 2.8
wouterjFeb 7, 2016
b3f3d9f
Fix syntax
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
319998d
Merge branch '2.3' into 2.7
xabbuhFeb 7, 2016
52f14f8
Merge branch '2.7' into 2.8
xabbuhFeb 7, 2016
811671d
Merge branch '2.8' into 3.0
xabbuhFeb 7, 2016
cb8f241
Add missing getBoolean() method
bocharsky-bwFeb 7, 2016
2e2c245
feature #6243 Add missing getBoolean() method (bocharsky-bw)
wouterjFeb 8, 2016
5331783
[#6243] Add versionadded directive
wouterjFeb 8, 2016
7ede792
Merge branch '2.7' into 2.8
wouterjFeb 8, 2016
d9f6264
Merge branch '2.8' into 3.0
wouterjFeb 8, 2016
3d7838b
Merge branch '2.3' into 2.7
wouterjFeb 8, 2016
c2a0f39
[Cookbook][Console] change API doc class name
xabbuhFeb 8, 2016
11f1564
minor #6245 [Cookbook][Console] change API doc class name (xabbuh)
wouterjFeb 9, 2016
f8b560d
Removed all 2.x versionadded directives
wouterjFeb 7, 2016
b986eb1
minor #6242 Removed all 2.x versionadded directives (WouterJ)
xabbuhFeb 9, 2016
5dcca79
[Cookbook][Serializer] fix wording
xabbuhFeb 9, 2016
7cfbb2f
Merge branch '2.3' into 2.7
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
0cbea24
minor #6249 [Cookbook][Serializer] fix wording (xabbuh)
wouterjFeb 10, 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
bef2b66
feature #6233 Document translation_domain for choice fields (merorafa…
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
ebe0724
Merge branch '2.3' into 2.7
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
9785f08
add missing options `choice_value`, `choice_name` and `choice_attr` t…
HeahDudeFeb 11, 2016
3eda649
reorder options in choice types references
HeahDudeFeb 11, 2016
6ef2099
reflect behavior changes in cache generation
xabbuhFeb 11, 2016
bc70d00
minor #6262 [Form] reorder options in choice types references (HeahDude)
xabbuhFeb 12, 2016
6be4c20
minor #6260 add missing options `choice_value`, `choice_name` and `ch…
xabbuhFeb 12, 2016
46156f4
put anchor back
Feb 15, 2016
61ef5bb
remove dot in front of colon
xabbuhFeb 15, 2016
8fe4609
minor #6277 remove dot in front of colon (xabbuh)
xabbuhFeb 15, 2016
5969b80
move packages and base_urls to assets section
Feb 16, 2016
61403e7
remove unused reference
Feb 16, 2016
7e621a8
Fix syntax of Company class example
cakperFeb 16, 2016
80cfcff
minor #6280 Fix syntax of Company class example (cakper)
xabbuhFeb 17, 2016
c440050
[HttpFoundation] Fix typo for ParameterBag getters
rendler-denisFeb 17, 2016
479ac7b
Merge branch '2.3' into 2.7
xabbuhFeb 17, 2016
dbee0df
Fix setting permission for var subdirectories
vodaFeb 19, 2016
cc12d7f
change order of assets configuration options
Feb 20, 2016
5d06eb5
document base_path option
Feb 20, 2016
2a905d8
small fixes for xml configuration examples
Feb 20, 2016
60a10e8
feature #6172 move assets options from templating to assets section a…
weaverryanFeb 21, 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
00abe12
Improved TwigExtension to show default values and optional arguments
javiereguiluzFeb 29, 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
88052f7
minor #6311 Improved TwigExtension to show default values and optiona…
wouterjMar 5, 2016
2881fb6
Merge branch '2.3' into 2.7
wouterjMar 5, 2016
276e38d
Minor error
ThomasLandauerMar 3, 2016
2fe8c61
minor #6325 Minor error (ThomasLandauer)
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
c39afa3
Merge branch '2.3' into 2.7
wouterjMar 5, 2016
29567b1
Added February changelog
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
6a1d886
[PHPUnit bridge] Add documentation for the component
theofidryFeb 15, 2016
4decfa9
feature #6273 [PHPUnit bridge] Add documentation for the component (t…
wouterjMar 5, 2016
0e56ff9
[#6273] Proofread of the new PHPUnit Bridge docs
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
73f1935
[Form] fix `choice_label` values
HeahDudeFeb 17, 2016
30a1495
[Form] reorder EntityType options
HeahDudeMar 5, 2016
896b8a6
Rename DunglasApiBundle to ApiPlatform
srozeMar 6, 2016
f82b32e
[HttpFoundation] ParameterBag::get() $deep param
Oliboy50Mar 6, 2016
9d00f0b
feature #6282 [Form] fix `choice_label` values (HeahDude)
weaverryanMar 6, 2016
2f9866c
[#6282] Removing PropertyPath as type and clarifying last sentence
weaverryanMar 6, 2016
79e0d0d
Merge branch '2.3' into 2.7
weaverryanMar 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
a99cc60
minor #6330 [Form] reorder EntityType options (HeahDude)
wouterjMar 8, 2016
60cd462
Merge branch '2.3' into 2.7
wouterjMar 9, 2016
01133fd
Merge branch '2.7' into 2.8
wouterjMar 9, 2016
a297099
Merge branch '2.8' into 3.0
wouterjMar 9, 2016
a84b2c5
minor #6331 Rename DunglasApiBundle to ApiPlatform (sroze)
xabbuhMar 10, 2016
68650b8
Fix reference to app folder
kainjowMar 11, 2016
2e03a7e
minor #6350 Fix reference to app folder (kainjow)
xabbuhMar 11, 2016
82ba7db
Merge branch '2.3' into 2.7
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
a66c49a
Fixed typo in path
timhoviusMar 2, 2016
ff32bd8
Changed folder name to lowercase (best practises)
timhoviusMar 14, 2016
01b2cd9
bug #6320 Fixed typo in path (timhovius)
weaverryanMar 17, 2016
2c79c08
Update introduction.rst
martijn80Jan 19, 2016
00bc64c
Add a note about enabling DebugBundle to use VarDumper inside Symfony
javiereguiluzMar 11, 2016
11e80c9
bug #6347 Add a note about enabling DebugBundle to use VarDumper insi…
weaverryanMar 17, 2016
e7246b6
Merge branch '2.3' into 2.7
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
503c07c
Fixed wrong code examples for Isbn constraint
a-astMar 25, 2016
66051f7
minor #6399 Fixed wrong code examples for Isbn constraint (AAstakhov)
xabbuhMar 26, 2016
cedeaa5
Merge branch '2.3' into 2.7
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
88f0238
Merge branch '2.3' into 2.7
xabbuhMar 30, 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
d0c9ad9
Added a caution note about REMOTE_USER and user impersonation
javiereguiluzApr 1, 2016
fbcfbb4
Fixed a path
javiereguiluzApr 1, 2016
6c42309
fixed yaml config error
RickieLApr 5, 2016
fe40a49
minor #6432 fixed yaml config error (RickieL)
xabbuhApr 6, 2016
80c26c1
[Form] fixed ChoiceType example in CollectionType
HeahDudeApr 9, 2016
f947c8c
Merge branch '2.3' into 2.7
wouterjApr 9, 2016
f69cdb8
Added March changelog
wouterjApr 9, 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
78ddfef
Fixed an array notation in comment (serializer.rst)
Apr 11, 2016
fd7b6b1
minor #6457 Fixed an array notation in comment (serializer.rst) (iltar)
xabbuhApr 11, 2016
069bffb
minor #6423 Added a caution note about REMOTE_USER and user impersona…
weaverryanApr 12, 2016
3d26303
Fix form/validation directory path
Nem0frApr 6, 2016
60ca906
bug #6439 Fix form/validation directory path (nemo-)
weaverryanApr 12, 2016
7b036f8
minor #6449 [Form] fixed ChoiceType example in CollectionType (HeahDude)
weaverryanApr 12, 2016
07e8f68
Merge branch '2.3' into 2.7
weaverryanApr 12, 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
0d71b6c
Fixing bad conflict fix
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
351f796
Merge branch '2.3' into 2.7
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
3ae6616
Update php.rst
Apr 16, 2016
2ee6a4a
Update authorization.rst
mantuloApr 12, 2016
7819f9e
bug #6460 Update authorization.rst (mantulo)
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
7dd8fa2
remove documentation of not supported "verbose" option value
Apr 19, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 5 additions & 1 deletionbest_practices/business-logic.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -21,6 +21,8 @@ Inside here, you can create whatever directories you want to organize things:
│ └─ AppBundle/
│ └─ Utils/
│ └─ MyClass.php
├─ tests/
├─ var/
├─ vendor/
└─ web/

Expand All@@ -40,6 +42,8 @@ and put things there:
│ │ └─ Utils/
│ │ └─ MyClass.php
│ └─ AppBundle/
├─ tests/
├─ var/
├─ vendor/
└─ web/

Expand DownExpand Up@@ -318,7 +322,7 @@ command:

.. code-block:: bash

$ phpapp/console doctrine:fixtures:load
$ phpbin/console doctrine:fixtures:load

Careful, database will be purged. Do you want to continue Y/N ? Y
> purging database
Expand Down
4 changes: 2 additions & 2 deletionsbest_practices/configuration.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -52,8 +52,8 @@ Canonical Parameters
Define all your application's parameters in the
``app/config/parameters.yml.dist`` file.

Since version 2.3,Symfony includes a configuration file called ``parameters.yml.dist``,
whichstores the canonical list of configuration parameters for the application.
Symfony includes a configuration file called ``parameters.yml.dist``, which
stores the canonical list of configuration parameters for the application.

Whenever a new configuration parameter is defined for the application, you
should also add it to this file and submit the changes to your version control
Expand Down
56 changes: 23 additions & 33 deletionsbest_practices/creating-the-project.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -27,7 +27,6 @@ to create files and execute the following commands:

.. code-block:: bash

# Linux, Mac OS X
$ cd projects/
$ symfony new blog

Expand DownExpand Up@@ -63,27 +62,35 @@ number of files and directories generated automatically:

blog/
├─ app/
│ ├─ console
│ ├─ cache/
│ ├─ config/
│ ├─ logs/
│ └─ Resources/
├─ bin
│ └─ console
├─ src/
│ └─ AppBundle/
├─ var/
│ ├─ cache/
│ ├─ logs/
│ └─ sessions/
├─ tests/
│ └─ AppBundle/
├─ vendor/
└─ web/

This file and directory hierarchy is the convention proposed by Symfony to
structure your applications. The recommended purpose of each directory is the
following:

* ``app/cache/``, stores all the cache files generated by the application;
* ``app/config/``, stores all the configuration defined for any environment;
* ``app/logs/``, stores all the log files generated by the application;
* ``app/Resources/``, stores all the templates and the translation files for the
application;
* ``src/AppBundle/``, stores the Symfony specific code (controllers and routes),
your domain code (e.g. Doctrine classes) and all your business logic;
* ``var/cache/``, stores all the cache files generated by the application;
* ``var/logs/``, stores all the log files generated by the application;
* ``var/sessions/``, stores all the session files generated by the application;
* ``tests/AppBundle/``, stores the automatic tests (e.g. Unit tests) of the
application.
* ``vendor/``, this is the directory where Composer installs the application's
dependencies and you should never modify any of its contents;
* ``web/``, stores all the front controller files and all the web assets, such
Expand All@@ -107,8 +114,7 @@ ProductBundle, then there's no advantage to having two separate bundles.
Create only one bundle called AppBundle for your application logic.

Implementing a single AppBundle bundle in your projects will make your code
more concise and easier to understand. Starting in Symfony 2.6, the official
Symfony documentation uses the AppBundle name.
more concise and easier to understand.

.. note::

Expand All@@ -128,13 +134,18 @@ that follows these best practices:

blog/
├─ app/
│ ├─ console
│ ├─ cache/
│ ├─ config/
│ ├─ logs/
│ └─ Resources/
├─ bin/
│ └─ console
├─ src/
│ └─ AppBundle/
├─ tests/
│ └─ AppBundle/
├─ var/
│ ├─ cache/
│ ├─ logs/
└─ sessions/
├─ vendor/
└─ web/
├─ app.php
Expand All@@ -147,7 +158,7 @@ that follows these best practices:

.. code-block:: bash

$ phpapp/console generate:bundle --namespace=AppBundle --dir=src --format=annotation --no-interaction
$ phpbin/console generate:bundle --namespace=AppBundle --dir=src --format=annotation --no-interaction

Extending the Directory Structure
---------------------------------
Expand All@@ -157,27 +168,6 @@ structure of Symfony, you can
:doc:`override the location of the main directories </cookbook/configuration/override_dir_structure>`:
``cache/``, ``logs/`` and ``web/``.

In addition, Symfony3 will use a slightly different directory structure when
it's released:

.. code-block:: text

blog-symfony3/
├─ app/
│ ├─ config/
│ └─ Resources/
├─ bin/
│ └─ console
├─ src/
├─ var/
│ ├─ cache/
│ └─ logs/
├─ vendor/
└─ web/

The changes are pretty superficial, but for now, we recommend that you use
the Symfony directory structure.

.. _`Composer`: https://getcomposer.org/
.. _`Phar extension`: http://php.net/manual/en/intro.phar.php
.. _`public checksums repository`: https://github.com/sensiolabs/checksums
Expand Down
66 changes: 22 additions & 44 deletionsbest_practices/forms.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -21,40 +21,38 @@ form in its own PHP class::

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
use Symfony\Component\Form\Extension\Core\Type\EmailType;
use Symfony\Component\Form\Extension\Core\Type\DateTimeType;

class PostType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
->add('title')
->add('summary','textarea')
->add('content','textarea')
->add('authorEmail','email')
->add('publishedAt','datetime')
->add('summary',TextareaType::class)
->add('content',TextareaType::class)
->add('authorEmail',EmailType::class)
->add('publishedAt',DateTimeType::class)
;
}

public functionsetDefaultOptions(OptionsResolverInterface $resolver)
public functionconfigureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults(array(
'data_class' => 'AppBundle\Entity\Post'
));
}

public function getName()
{
return 'post';
}
}

.. best-practice::

Put the form type classes in the ``AppBundle\Form`` namespace, unless you
use other custom form classes like data transformers.

To use the class, use ``createForm()`` andinstantiate thenewclass::
To use the class, use ``createForm()`` andpass thefully qualifiedclass name::

// ...
use AppBundle\Form\PostType;
Expand All@@ -63,7 +61,7 @@ To use the class, use ``createForm()`` and instantiate the new class::
public function newAction(Request $request)
{
$post = new Post();
$form = $this->createForm(newPostType(), $post);
$form = $this->createForm(PostType::class, $post);

// ...
}
Expand All@@ -73,13 +71,9 @@ Registering Forms as Services

You can also
:ref:`register your form type as a service <form-cookbook-form-field-service>`.
But this is *not* recommended unless you plan to reuse the new form type in many
places or embed it in other forms directly or via the
:doc:`collection type </reference/forms/types/collection>`.

For most forms that are used only to edit or create something, registering
the form as a service is over-kill, and makes it more difficult to figure
out exactly which form class is being used in a controller.
This is only needed if your form type requires some dependencies to be injected
by the container, otherwise it is unnecessary overhead and therefore *not*
recommended to do this for all form type classes.

Form Button Configuration
-------------------------
Expand All@@ -91,9 +85,10 @@ makes them easier to re-use later.

Add buttons in the templates, not in the form classes or the controllers.

Since Symfony 2.3, you can add buttons as fields on your form. This is a nice
way to simplify the template that renders your form. But if you add the buttons
directly in your form class, this would effectively limit the scope of that form:
The Symfony Form component allows you to add buttons as fields on your form.
This is a nice way to simplify the template that renders your form. But if you
add the buttons directly in your form class, this would effectively limit the
scope of that form:

.. code-block:: php

Expand All@@ -103,7 +98,7 @@ directly in your form class, this would effectively limit the scope of that form
{
$builder
// ...
->add('save','submit', array('label' => 'Create Post'))
->add('save',SubmitType::class, array('label' => 'Create Post'))
;
}

Expand All@@ -118,6 +113,7 @@ some developers configure form buttons in the controller::

use Symfony\Component\HttpFoundation\Request;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use AppBundle\Entity\Post;
use AppBundle\Form\PostType;

Expand All@@ -128,8 +124,8 @@ some developers configure form buttons in the controller::
public function newAction(Request $request)
{
$post = new Post();
$form = $this->createForm(newPostType(), $post);
$form->add('submit','submit', array(
$form = $this->createForm(PostType::class, $post);
$form->add('submit',SubmitType::class, array(
'label' => 'Create',
'attr' => array('class' => 'btn btn-default pull-right')
));
Expand DownExpand Up@@ -213,21 +209,3 @@ Second, we recommend using ``$form->isSubmitted()`` in the ``if`` statement
for clarity. This isn't technically needed, since ``isValid()`` first calls
``isSubmitted()``. But without this, the flow doesn't read well as it *looks*
like the form is *always* processed (even on the GET request).

Custom Form Field Types
-----------------------

.. best-practice::

Add the ``app_`` prefix to your custom form field types to avoid collisions.

Custom form field types inherit from the ``AbstractType`` class, which defines the
``getName()`` method to configure the name of that form type. These names must
be unique in the application.

If a custom form type uses the same name as any of the Symfony's built-in form
types, it will override it. The same happens when the custom form type matches
any of the types defined by the third-party bundles installed in your application.

Add the ``app_`` prefix to your custom form field types to avoid name collisions
that can lead to hard to debug errors.
6 changes: 3 additions & 3 deletionsbest_practices/i18n.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -32,9 +32,9 @@ Of all the available translation formats, only XLIFF and gettext have broad
support in the tools used by professional translators. And since it's based
on XML, you can validate XLIFF file contents as you write them.

Symfony2.6 added support fornotesinside XLIFF files, making them more
user-friendly fortranslators. At the end, good translations are all about
context, and theseXLIFF notes allow you to define that context.
Symfonysupportsnotesin XLIFF files, making them more user-friendly for
translators. At the end, good translations are all about context, and these
XLIFF notes allow you to define that context.

.. tip::

Expand Down
4 changes: 0 additions & 4 deletionsbest_practices/introduction.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -76,12 +76,8 @@ installer and then execute this command to download the demo application:

.. code-block:: bash

# Linux and Mac OS X
$ symfony demo

# Windows
c:\> php symfony demo

**The demo application is a simple blog engine**, because that will allow us to
focus on the Symfony concepts and features without getting buried in difficult
implementation details. Instead of developing the application step by step in
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp