Skip to content
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

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

Closed
wants to merge 2,694 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2694 commits
Select commit Hold shift + click to select a range
3d1e8a7
Merge branch '2.7' into 2.8
xabbuh Jan 31, 2016
372704b
Revert "revert form login CSRF changes on wrong branch"
xabbuh Jan 31, 2016
fcdb82b
fix types
garak Jan 28, 2016
bce32e2
minor #6199 fix types (garak)
xabbuh Jan 31, 2016
cf0a650
fixes #5971
vincentaubert Dec 26, 2015
03c6605
Merge branch '2.8' into 3.0
xabbuh Feb 1, 2016
ce45b71
[book] fixes typo about redirect status codes in the controller chapter.
Feb 3, 2016
211f3a6
add versionadded directive for range type
xabbuh Feb 4, 2016
41e4f30
minor #6225 [Reference][Forms] add versionadded directive for range t…
xabbuh Feb 5, 2016
97ef850
Remove 2.3.* from composer snippets in the form component doc
Nicofuma Feb 1, 2016
06c76aa
minor #6211 Remove 2.3.* from composer snippets in the form component…
xabbuh Feb 5, 2016
06ca405
change translation getMessages() to getCatalogue()
Jan 19, 2016
ab57eed
minor #6170 change translation getMessages() to getCatalogue() (snoek09)
xabbuh Feb 5, 2016
0e288a2
removed unnecesary exception form repository
gondo Feb 5, 2016
f7adcfa
minor #6228 removed unnecessary exception from repository (gondo)
xabbuh Feb 6, 2016
26d8f84
minor #6220 [book] fixes typo about redirect status codes in the cont…
xabbuh Feb 6, 2016
bb96dc6
Update form_collections.rst
insekticid Feb 1, 2016
8e8144f
minor #6213 Update form_collections.rst (insekticid)
xabbuh Feb 6, 2016
129d853
Merge branch '2.3' into 2.7
xabbuh Feb 6, 2016
0d92394
Merge branch '2.7' into 2.8
xabbuh Feb 6, 2016
f42057a
Merge branch '2.8' into 3.0
xabbuh Feb 6, 2016
a31dcc0
feature #5642 Documented label_format option (WouterJ)
wouterj Feb 6, 2016
946c5c2
Added note about the hash_equals polyfill
wouterj Dec 18, 2015
53febf0
minor #6044 Added note about the hash_equals polyfill (WouterJ)
wouterj Feb 6, 2016
906d55a
Update Testing Form Types article for 2.8 refactorings
wouterj Dec 21, 2015
e821b97
feature #6058 Update Testing Form Types article for 2.8 refactorings …
wouterj Feb 6, 2016
7a4d9fc
[FrameworkBundle] Name converter of Serializer
dunglas May 29, 2015
41d43dd
feature #5483 [FrameworkBundle] Name converter of Serializer (dunglas)
wouterj Feb 6, 2016
e901fbc
bug #6081 [cookbook New project] Fix symfony version and initial add …
wouterj Feb 6, 2016
fc041c5
feature #6077 fixes #5971 (vincentaubert)
wouterj Feb 6, 2016
383401d
[#6077] Fix code to not use deprecated classes
wouterj Feb 6, 2016
353df25
Document automatic registration of extension compiler passes
wouterj Nov 28, 2015
075a81d
feature #5920 Document automatic registration of extension compiler p…
wouterj Feb 6, 2016
5957927
Update entity.rst
merorafael Aug 10, 2015
3ad5111
Travis fix
merorafael Aug 10, 2015
2fa2386
choice_translation_domain doc fix
merorafael Aug 31, 2015
92998d8
translation_domain doc fix
merorafael Aug 31, 2015
4b92e88
Document translation_domain setting for choice fields
wouterj Feb 6, 2016
d1e109e
Merge branch '2.3' into 2.7
wouterj Feb 6, 2016
b56880b
Merge branch '2.7' into 2.8
wouterj Feb 6, 2016
16cc4bc
Merge branch '2.8' into 3.0
wouterj Feb 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 …
xabbuh Feb 6, 2016
0baa317
use literals for external class names
xabbuh Feb 6, 2016
47704a7
minor #6237 use literals for external class names (xabbuh)
wouterj Feb 6, 2016
309d29f
Merge branch '2.3' into 2.7
wouterj Feb 6, 2016
fe2e8e7
Merge branch '2.7' into 2.8
wouterj Feb 6, 2016
2c9b1ec
Merge branch '2.8' into 3.0
wouterj Feb 6, 2016
89b20a8
[Cookbook, Security] Added user_checkers.rst
Jul 16, 2015
47f6b3b
feature #5530 [Cookbook, Security] Added user_checkers.rst (iltar)
xabbuh Feb 7, 2016
dd8585d
[#5330] some tweaks
xabbuh Feb 7, 2016
07f8e40
[components][expression_language] Add doc for backslashes
zerustech Jul 29, 2015
31d74e5
Add a caution about backslash escaping
wouterj Feb 7, 2016
be54971
#6232 update forms as services section
backbone87 Feb 6, 2016
99c8abe
minor #6235 #6232 update forms as services section (backbone87)
xabbuh Feb 7, 2016
3165c70
minor #6241 [ExpressionLanguage] Add caution about backslash handling…
xabbuh Feb 7, 2016
bcc1cc4
minor #6090 Reworded the article about profiler storage (xavierleune,…
xabbuh Feb 7, 2016
35a520d
[#6090] some small tweaks
xabbuh Feb 7, 2016
6544665
Merge branch '2.3' into 2.7
wouterj Feb 7, 2016
a5055a5
Added December changelog
wouterj Feb 7, 2016
f1ba10e
Merge branch '2.7' into 2.8
wouterj Feb 7, 2016
eb1c1ae
Added December changelog
wouterj Feb 7, 2016
cdb8b24
Merge branch '2.8' into 3.0
wouterj Feb 7, 2016
4ffe998
Added December changelog
wouterj Feb 7, 2016
ff748f6
Merge branch '2.3' into 2.7
wouterj Feb 7, 2016
03e3259
Added January changelog
wouterj Feb 7, 2016
2651431
Merge branch '2.7' into 2.8
wouterj Feb 7, 2016
9fcd140
Added January changelog
wouterj Feb 7, 2016
f91bcef
Merge branch '2.8' into 3.0
wouterj Feb 7, 2016
026d9ed
Added January changelog
wouterj Feb 7, 2016
79995ee
Merge branch '2.3' into 2.7
wouterj Feb 7, 2016
fc3c9f3
Merge branch '2.7' into 2.8
wouterj Feb 7, 2016
b3f3d9f
Fix syntax
wouterj Feb 7, 2016
1d1ec81
Merge branch '2.7' into 2.8
wouterj Feb 7, 2016
fe1dfc7
Merge branch '2.8' into 3.0
wouterj Feb 7, 2016
266f7bf
Fix syntax
wouterj Feb 7, 2016
319998d
Merge branch '2.3' into 2.7
xabbuh Feb 7, 2016
52f14f8
Merge branch '2.7' into 2.8
xabbuh Feb 7, 2016
811671d
Merge branch '2.8' into 3.0
xabbuh Feb 7, 2016
cb8f241
Add missing getBoolean() method
bocharsky-bw Feb 7, 2016
2e2c245
feature #6243 Add missing getBoolean() method (bocharsky-bw)
wouterj Feb 8, 2016
5331783
[#6243] Add versionadded directive
wouterj Feb 8, 2016
7ede792
Merge branch '2.7' into 2.8
wouterj Feb 8, 2016
d9f6264
Merge branch '2.8' into 3.0
wouterj Feb 8, 2016
3d7838b
Merge branch '2.3' into 2.7
wouterj Feb 8, 2016
c2a0f39
[Cookbook][Console] change API doc class name
xabbuh Feb 8, 2016
11f1564
minor #6245 [Cookbook][Console] change API doc class name (xabbuh)
wouterj Feb 9, 2016
f8b560d
Removed all 2.x versionadded directives
wouterj Feb 7, 2016
b986eb1
minor #6242 Removed all 2.x versionadded directives (WouterJ)
xabbuh Feb 9, 2016
5dcca79
[Cookbook][Serializer] fix wording
xabbuh Feb 9, 2016
7cfbb2f
Merge branch '2.3' into 2.7
xabbuh Feb 9, 2016
a447862
Merge branch '2.7' into 2.8
xabbuh Feb 9, 2016
cf9ce3d
Merge branch '2.8' into 3.0
xabbuh Feb 9, 2016
0cbea24
minor #6249 [Cookbook][Serializer] fix wording (xabbuh)
wouterj Feb 10, 2016
121196d
[2.8] Add "How to Use Multiple Guard Authenticators" cookbook documen…
marek-pietrzak-tg Nov 12, 2015
f0c0fac
feature #5886 [2.8] Add "How to Use Multiple Guard Authenticators" co…
xabbuh Feb 10, 2016
63c57dd
[Security] Include guard firewall configuration sample.
calinpristavu Feb 10, 2016
be7efd6
minor #6253 [Security] Include guard firewall configuration sample. (…
xabbuh Feb 10, 2016
bef2b66
feature #6233 Document translation_domain for choice fields (merorafa…
xabbuh Feb 10, 2016
995bd4f
[DependencyInjection] Autowiring doc
dunglas Dec 16, 2015
fb7f15e
feature #6032 [DependencyInjection] Autowiring doc (dunglas)
xabbuh Feb 10, 2016
d1e3024
[#6032] some tweaks for the autowiring feature
xabbuh Feb 10, 2016
ebe0724
Merge branch '2.3' into 2.7
xabbuh Feb 10, 2016
c00626c
Merge branch '2.7' into 2.8
xabbuh Feb 10, 2016
6b3f5f4
Merge branch '2.8' into 3.0
xabbuh Feb 10, 2016
0103364
[#6032] fix link to ROT13 description
xabbuh Feb 10, 2016
aa33bfa
[Components][Form] remove outdated caution
xabbuh Feb 10, 2016
4924513
minor #6257 [Components][Form] remove outdated caution (xabbuh)
wouterj Feb 10, 2016
9785f08
add missing options `choice_value`, `choice_name` and `choice_attr` t…
HeahDude Feb 11, 2016
3eda649
reorder options in choice types references
HeahDude Feb 11, 2016
6ef2099
reflect behavior changes in cache generation
xabbuh Feb 11, 2016
bc70d00
minor #6262 [Form] reorder options in choice types references (HeahDude)
xabbuh Feb 12, 2016
6be4c20
minor #6260 add missing options `choice_value`, `choice_name` and `ch…
xabbuh Feb 12, 2016
46156f4
put anchor back
Feb 15, 2016
61ef5bb
remove dot in front of colon
xabbuh Feb 15, 2016
8fe4609
minor #6277 remove dot in front of colon (xabbuh)
xabbuh Feb 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
cakper Feb 16, 2016
80cfcff
minor #6280 Fix syntax of Company class example (cakper)
xabbuh Feb 17, 2016
c440050
[HttpFoundation] Fix typo for ParameterBag getters
rendler-denis Feb 17, 2016
479ac7b
Merge branch '2.3' into 2.7
xabbuh Feb 17, 2016
dbee0df
Fix setting permission for var subdirectories
voda Feb 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…
weaverryan Feb 21, 2016
11e4532
minor #6263 [Cookbook][Debugging] reflect behavior changes in cache g…
weaverryan Feb 21, 2016
3d3bac0
[#6263] Javier's comments
weaverryan Feb 21, 2016
657ba99
Merge branch '2.8' into 3.0
weaverryan Feb 21, 2016
8222639
bug #6292 Fix setting permission for var subdirectories (voda)
weaverryan Feb 21, 2016
06eee41
Update dependency_injection.rst because it has an error.
joserprieto Feb 23, 2016
a499d12
minor #6298 Update dependency_injection.rst because it has an error. …
xabbuh Feb 27, 2016
dcb5a54
Removed True and False constraints from reference
edefimov Feb 23, 2016
581f46c
minor #6299 Removed True and False constraints from reference (edefimov)
xabbuh Feb 27, 2016
00abe12
Improved TwigExtension to show default values and optional arguments
javiereguiluz Feb 29, 2016
bcba4f4
Remove "paamayim nekudotayim" breaking configuration blocks in DI aut…
eXtreme Mar 2, 2016
bfc7976
Add Auto-wiring keyword
theofidry Mar 2, 2016
1a6e4c5
Missing svn:ignore
Mar 4, 2016
fb4c526
bug #6326 Missing svn:ignore (f-plante)
wouterj Mar 5, 2016
25b3aed
Update user_checkers.rst
gailimov Mar 2, 2016
e29233c
bug #6324 Fixed UserCheckerInterface importing (VIs-a-vis)
wouterj Mar 5, 2016
7874bd0
minor #6286 [HttpFoundation] Fix typo for ParameterBag getters - 3.0 …
wouterj Mar 5, 2016
88052f7
minor #6311 Improved TwigExtension to show default values and optiona…
wouterj Mar 5, 2016
2881fb6
Merge branch '2.3' into 2.7
wouterj Mar 5, 2016
276e38d
Minor error
ThomasLandauer Mar 3, 2016
2fe8c61
minor #6325 Minor error (ThomasLandauer)
wouterj Mar 5, 2016
28082dc
minor #6323 [DependencyInjection] Add Autowiring keyword (theofidry)
wouterj Mar 5, 2016
0f32eef
bug #6322 [DependencyInjection] fix autowiring docs (eXtreme)
wouterj Mar 5, 2016
c39afa3
Merge branch '2.3' into 2.7
wouterj Mar 5, 2016
29567b1
Added February changelog
wouterj Mar 5, 2016
8e08e35
Merge branch '2.7' into 2.8
wouterj Mar 5, 2016
11eb093
Added February changelog
wouterj Mar 5, 2016
778a7f9
Fix faulty merge
wouterj Mar 5, 2016
9b0dccf
Merge branch '2.8' into 3.0
wouterj Mar 5, 2016
41393d9
Added February changelog
wouterj Mar 5, 2016
6a1d886
[PHPUnit bridge] Add documentation for the component
theofidry Feb 15, 2016
4decfa9
feature #6273 [PHPUnit bridge] Add documentation for the component (t…
wouterj Mar 5, 2016
0e56ff9
[#6273] Proofread of the new PHPUnit Bridge docs
wouterj Mar 5, 2016
8e59931
Merge branch '2.7' into 2.8
wouterj Mar 5, 2016
ab4bfe5
Merge branch '2.8' into 3.0
wouterj Mar 5, 2016
73f1935
[Form] fix `choice_label` values
HeahDude Feb 17, 2016
30a1495
[Form] reorder EntityType options
HeahDude Mar 5, 2016
896b8a6
Rename DunglasApiBundle to ApiPlatform
sroze Mar 6, 2016
f82b32e
[HttpFoundation] ParameterBag::get() $deep param
Oliboy50 Mar 6, 2016
9d00f0b
feature #6282 [Form] fix `choice_label` values (HeahDude)
weaverryan Mar 6, 2016
2f9866c
[#6282] Removing PropertyPath as type and clarifying last sentence
weaverryan Mar 6, 2016
79e0d0d
Merge branch '2.3' into 2.7
weaverryan Mar 6, 2016
d85f13a
Merge branch '2.7' into 2.8
weaverryan Mar 6, 2016
230b4f6
Merge branch '2.8' into 3.0
weaverryan Mar 6, 2016
dcd1126
Update Doctrine UTF8 docs
mcfedr Feb 15, 2016
a99cc60
minor #6330 [Form] reorder EntityType options (HeahDude)
wouterj Mar 8, 2016
60cd462
Merge branch '2.3' into 2.7
wouterj Mar 9, 2016
01133fd
Merge branch '2.7' into 2.8
wouterj Mar 9, 2016
a297099
Merge branch '2.8' into 3.0
wouterj Mar 9, 2016
a84b2c5
minor #6331 Rename DunglasApiBundle to ApiPlatform (sroze)
xabbuh Mar 10, 2016
68650b8
Fix reference to app folder
kainjow Mar 11, 2016
2e03a7e
minor #6350 Fix reference to app folder (kainjow)
xabbuh Mar 11, 2016
82ba7db
Merge branch '2.3' into 2.7
xabbuh Mar 11, 2016
e87e9ee
Merge branch '2.7' into 2.8
xabbuh Mar 11, 2016
f24b8f8
Merge branch '2.8' into 3.0
xabbuh Mar 11, 2016
993fc45
Made list of types more consistent
a-ast Mar 14, 2016
aa6fb92
Update "bootstrap.php.cache" to "autoload.php"
guilliamxavier Mar 16, 2016
24c2404
feature #6274 Update Doctrine UTF8 docs (mcfedr)
weaverryan Mar 17, 2016
a66c49a
Fixed typo in path
timhovius Mar 2, 2016
ff32bd8
Changed folder name to lowercase (best practises)
timhovius Mar 14, 2016
01b2cd9
bug #6320 Fixed typo in path (timhovius)
weaverryan Mar 17, 2016
2c79c08
Update introduction.rst
martijn80 Jan 19, 2016
00bc64c
Add a note about enabling DebugBundle to use VarDumper inside Symfony
javiereguiluz Mar 11, 2016
11e80c9
bug #6347 Add a note about enabling DebugBundle to use VarDumper insi…
weaverryan Mar 17, 2016
e7246b6
Merge branch '2.3' into 2.7
weaverryan Mar 17, 2016
c0a441e
bug #6368 [cookbook] Made list of form types more consistent (AAstakhov)
weaverryan Mar 17, 2016
b20e1ca
bug #6377 Update "bootstrap.php.cache" to "autoload.php" (guilliamxav…
weaverryan Mar 17, 2016
09bc39e
Reworded the example about $deep param
javiereguiluz Mar 20, 2016
fba2da2
Calling the parent implementation is mandatory.
corphi Mar 17, 2016
c9b54db
minor #6381 [Form] [Cookbook] Correctly setup unit tests with depende…
xabbuh Mar 26, 2016
8666655
minor #6390 Reworded the example about $deep param (Oliboy50, javiere…
xabbuh Mar 26, 2016
503c07c
Fixed wrong code examples for Isbn constraint
a-ast Mar 25, 2016
66051f7
minor #6399 Fixed wrong code examples for Isbn constraint (AAstakhov)
xabbuh Mar 26, 2016
cedeaa5
Merge branch '2.3' into 2.7
xabbuh Mar 26, 2016
a064e17
Merge branch '2.7' into 2.8
xabbuh Mar 26, 2016
d2b6569
Merge branch '2.8' into 3.0
xabbuh Mar 26, 2016
23abecc
Update 'date' to DateType::class in form.rst
linaori Mar 29, 2016
88f0238
Merge branch '2.3' into 2.7
xabbuh Mar 30, 2016
6fb77fb
Merge branch '2.7' into 2.8
xabbuh Mar 30, 2016
31c49b8
Merge branch '2.8' into 3.0
xabbuh Mar 30, 2016
5928110
minor #6409 Update 'date' to DateType::class in form.rst (iltar)
xabbuh Mar 30, 2016
d0c9ad9
Added a caution note about REMOTE_USER and user impersonation
javiereguiluz Apr 1, 2016
fbcfbb4
Fixed a path
javiereguiluz Apr 1, 2016
6c42309
fixed yaml config error
RickieL Apr 5, 2016
fe40a49
minor #6432 fixed yaml config error (RickieL)
xabbuh Apr 6, 2016
80c26c1
[Form] fixed ChoiceType example in CollectionType
HeahDude Apr 9, 2016
f947c8c
Merge branch '2.3' into 2.7
wouterj Apr 9, 2016
f69cdb8
Added March changelog
wouterj Apr 9, 2016
63ee83e
Merge branch '2.7' into 2.8
wouterj Apr 9, 2016
501c208
Added March changelog
wouterj Apr 9, 2016
d380d37
Merge branch '2.8' into 3.0
wouterj Apr 9, 2016
e4650a5
Added March changelog
wouterj Apr 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)
xabbuh Apr 11, 2016
069bffb
minor #6423 Added a caution note about REMOTE_USER and user impersona…
weaverryan Apr 12, 2016
3d26303
Fix form/validation directory path
Nem0fr Apr 6, 2016
60ca906
bug #6439 Fix form/validation directory path (nemo-)
weaverryan Apr 12, 2016
7b036f8
minor #6449 [Form] fixed ChoiceType example in CollectionType (HeahDude)
weaverryan Apr 12, 2016
07e8f68
Merge branch '2.3' into 2.7
weaverryan Apr 12, 2016
9b0ec35
Merge branch '2.3' into 2.8
weaverryan Apr 12, 2016
fb09632
Merge branch '2.8' into 3.0
weaverryan Apr 12, 2016
cf17c2c
Merge branch '2.7' into 2.8
weaverryan Apr 12, 2016
84dbdca
Merge branch '2.8' into 3.0
weaverryan Apr 12, 2016
28e6be5
[#6449] Removing choices_as_values on merge
weaverryan Apr 12, 2016
0d71b6c
Fixing bad conflict fix
weaverryan Apr 12, 2016
cba307c
Merge branch '2.7' into 2.8
weaverryan Apr 12, 2016
b7c70e6
Merge branch '2.8' into 3.0
weaverryan Apr 12, 2016
351f796
Merge branch '2.3' into 2.7
weaverryan Apr 12, 2016
164db85
Merge branch '2.7' into 2.8
weaverryan Apr 12, 2016
ffb40b9
Merge branch '2.8' into 3.0
weaverryan Apr 12, 2016
5ba5224
fix broken merge
xabbuh Apr 13, 2016
5726c9b
minor #6471 fix broken merge (xabbuh)
xabbuh Apr 13, 2016
a9c9865
Merge branch '2.8' into 3.0
xabbuh Apr 13, 2016
3ae6616
Update php.rst
Apr 16, 2016
2ee6a4a
Update authorization.rst
mantulo Apr 12, 2016
7819f9e
bug #6460 Update authorization.rst (mantulo)
wouterj Apr 18, 2016
fefc8a0
minor #6479 Update php.rst (carlos-granados)
wouterj Apr 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 …
wouterj Apr 18, 2016
f7950ab
fixed wrong secret string in array examples
OskarStark Apr 16, 2016
7c1c926
bug #6482 fixed wrong secret string in array examples (OskarStark)
wouterj Apr 18, 2016
cfcd8df
Fix typo: signifcantly => significantly
ifdattic Apr 17, 2016
1653948
bug #6483 Fix typo: signifcantly => significantly (ifdattic)
wouterj Apr 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 deletion best_practices/business-logic.rst
Original file line number Diff line number Diff 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 Down Expand Up @@ -318,7 +322,7 @@ command:

.. code-block:: bash

$ php app/console doctrine:fixtures:load
$ php bin/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 deletions best_practices/configuration.rst
Original file line number Diff line number Diff 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``,
which stores 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 deletions best_practices/creating-the-project.rst
Original file line number Diff line number Diff 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 Down Expand 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

$ php app/console generate:bundle --namespace=AppBundle --dir=src --format=annotation --no-interaction
$ php bin/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 deletions best_practices/forms.rst
Original file line number Diff line number Diff 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 function setDefaultOptions(OptionsResolverInterface $resolver)
public function configureOptions(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()`` and instantiate the new class::
To use the class, use ``createForm()`` and pass the fully qualified class 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(new PostType(), $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(new PostType(), $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 Down Expand 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 deletions best_practices/i18n.rst
Original file line number Diff line number Diff 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.

Symfony 2.6 added support for notes inside 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.
Symfony supports notes in 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 deletions best_practices/introduction.rst
Original file line number Diff line number Diff 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