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

Appearance settings

Improved the docs for the DependencyInjection component #6494

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2,695 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
2695 commits
Select commit Hold shift + click to select a range
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
16cdf64
Improved the docs for the DependencyInjection component
javiereguiluz Apr 20, 2016
967e14e
Merge remote-tracking branch 'upstream/2.3' into improve_di
javiereguiluz Apr 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
4 changes: 2 additions & 2 deletions 4 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
3 changes: 1 addition & 2 deletions 3 best_practices/creating-the-project.rst
Original file line number Diff line number Diff line change
Expand Up @@ -114,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 Down
7 changes: 4 additions & 3 deletions 7 best_practices/forms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,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 Down
6 changes: 3 additions & 3 deletions 6 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
1 change: 0 additions & 1 deletion 1 best_practices/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,6 @@ the same ``getAuthorEmail`` logic you used above:
use Symfony\Component\Security\Core\User\UserInterface;
use AppBundle\Entity\Post;

// Voter class requires Symfony 2.8 or higher version
class PostVoter extends Voter
{
const CREATE = 'create';
Expand Down
33 changes: 0 additions & 33 deletions 33 book/forms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -123,20 +123,9 @@ You've also assigned each a "type" (e.g. ``TextType`` and ``DateType``),
represented by its fully qualified class name. Among other things, it determines
which HTML form tag(s) is rendered for that field.

.. versionadded:: 2.8
To denote the form type, you have to use the fully qualified class name - like
``TextType::class`` in PHP 5.5+ or ``Symfony\Component\Form\Extension\Core\Type\TextType``.
Before Symfony 2.8, you could use an alias for each type like ``text`` or
``date``. The old alias syntax will still work until Symfony 3.0. For more details,
see the `2.8 UPGRADE Log`_.

Finally, you added a submit button with a custom label for submitting the form to
the server.

.. versionadded:: 2.3
Support for submit buttons was introduced in Symfony 2.3. Before that, you had
to add buttons to the form's HTML manually.

Symfony comes with many built-in types that will be discussed shortly
(see :ref:`book-forms-type-reference`).

Expand Down Expand Up @@ -259,12 +248,6 @@ your controller::
is called. Otherwise, changes done in the ``*_SUBMIT`` events aren't applied to the
view (like validation errors).

.. versionadded:: 2.3
The :method:`Symfony\\Component\\Form\\FormInterface::handleRequest` method
was introduced in Symfony 2.3. Previously, the ``$request`` was passed
to the ``submit`` method - a strategy which is deprecated and will be
removed in Symfony 3.0. For details on that method, see :ref:`cookbook-form-submit-request`.

This controller follows a common pattern for handling forms, and has three
possible paths:

Expand Down Expand Up @@ -313,9 +296,6 @@ possible paths:
Submitting Forms with Multiple Buttons
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. versionadded:: 2.3
Support for buttons in forms was introduced in Symfony 2.3.

When your form contains more than one submit button, you will want to check
which of the buttons was clicked to adapt the program flow in your controller.
To do this, add a second button with the caption "Save and add" to your form::
Expand Down Expand Up @@ -491,10 +471,6 @@ you'll need to specify which validation group(s) your form should use::
'validation_groups' => array('registration'),
))->add(...);

.. versionadded:: 2.7
The ``configureOptions()`` method was introduced in Symfony 2.7. Previously,
the method was called ``setDefaultOptions()``.

If you're creating :ref:`form classes <book-form-creating-form-classes>` (a
good practice), then you'll need to add the following to the ``configureOptions()``
method::
Expand All @@ -517,9 +493,6 @@ be used to validate the underlying object.
Disabling Validation
~~~~~~~~~~~~~~~~~~~~

.. versionadded:: 2.3
The ability to set ``validation_groups`` to false was introduced in Symfony 2.3.

Sometimes it is useful to suppress the validation of a form altogether. For
these cases you can set the ``validation_groups`` option to ``false``::

Expand Down Expand Up @@ -620,9 +593,6 @@ work in the book section about :ref:`validation groups <book-validation-validati
Groups based on the Clicked Button
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. versionadded:: 2.3
Support for buttons in forms was introduced in Symfony 2.3.

When your form contains multiple submit buttons, you can change the validation
group depending on which button is used to submit the form. For example,
consider a form in a wizard that lets you advance to the next step or go back
Expand Down Expand Up @@ -1044,8 +1014,6 @@ to the ``form()`` or the ``form_start()`` helper:

<!-- app/Resources/views/default/newAction.html.php -->
<?php echo $view['form']->start($form, array(
// The path() method was introduced in Symfony 2.8. Prior to 2.8,
// you had to use generate().
'action' => $view['router']->path('target_route'),
'method' => 'GET',
)) ?>
Expand Down Expand Up @@ -1981,4 +1949,3 @@ Learn more from the Cookbook
.. _`form_div_layout.html.twig`: https://github.com/symfony/symfony/blob/master/src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig
.. _`Cross-site request forgery`: http://en.wikipedia.org/wiki/Cross-site_request_forgery
.. _`view on GitHub`: https://github.com/symfony/symfony/tree/master/src/Symfony/Bundle/FrameworkBundle/Resources/views/Form
.. _`2.8 UPGRADE Log`: https://github.com/symfony/symfony/blob/2.8/UPGRADE-2.8.md#form
2 changes: 1 addition & 1 deletion 2 book/from_flat_php_to_symfony2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ content:

{
"require": {
"symfony/symfony": "2.6.*"
"symfony/symfony": "3.0.*"
},
"autoload": {
"files": ["model.php","controllers.php"]
Expand Down
7 changes: 1 addition & 6 deletions 7 book/http_cache.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1095,12 +1095,7 @@ matter), Symfony uses the standard ``render`` helper to configure ESI tags:

<!-- ... or a URL -->
<?php echo $view['actions']->render(
// The url() method was introduced in Symfony 2.8. Prior to 2.8,
// you had to use generate($name, $parameters, UrlGeneratorInterface::ABSOLUTE_URL)
$view['router']->url(
'latest_news',
array('maxPerPage' => 5),
),
$view['router']->url('latest_news', array('maxPerPage' => 5)),
array('strategy' => 'esi'),
) ?>

Expand Down
2 changes: 1 addition & 1 deletion 2 book/page_creation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,6 @@ There's also a :doc:`Cookbook </cookbook/index>` *packed* with more advanced
Have fun!

.. _`Joyful Development with Symfony`: http://knpuniversity.com/screencast/symfony/first-page
.. _`app/Resources/views/base.html.twig`: https://github.com/symfony/symfony-standard/blob/2.7/app/Resources/views/base.html.twig
.. _`app/Resources/views/base.html.twig`: https://github.com/symfony/symfony-standard/blob/3.0/app/Resources/views/base.html.twig
.. _`Composer`: https://getcomposer.org
.. _`find open source bundles`: http://knpbundles.com
10 changes: 0 additions & 10 deletions 10 book/routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1543,10 +1543,6 @@ a template helper function:
Read this blog post.
</a>

.. versionadded:: 2.8
The ``path()`` PHP templating helper was introduced in Symfony 2.8. Prior
to 2.8, you had to use the ``generate()`` helper method.

.. index::
single: Routing; Absolute URLs

Expand Down Expand Up @@ -1581,12 +1577,6 @@ URL) rather than the ``path()`` function (which generates a relative URL):
Read this blog post.
</a>

.. versionadded:: 2.8
The ``url()`` PHP templating helper was introduced in Symfony 2.8. Prior
to 2.8, you had to use the ``generate()`` helper method with
``Symfony\Component\Routing\Generator\UrlGeneratorInterface::ABSOLUTE_URL``
passed as the third argument.

.. note::

The host that's used when generating an absolute URL is automatically
Expand Down
14 changes: 1 addition & 13 deletions 14 book/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ else, you'll want to encode their passwords. The best algorithm to use is
));

Of course, your users' passwords now need to be encoded with this exact algorithm.
For hardcoded users, since 2.7 you can use the built-in command:
For hardcoded users, you can use the built-in command:

.. code-block:: bash

Expand Down Expand Up @@ -894,18 +894,6 @@ the built-in ``is_granted()`` helper function:
<a href="...">Delete</a>
<?php endif ?>

.. note::

In Symfony versions previous to 2.8, using the ``is_granted()`` function
in a page that wasn't behind a firewall resulted in an exception. That's why
you also needed to check first for the existence of the user:

.. code-block:: html+twig

{% if app.user and is_granted('ROLE_ADMIN') %}

Starting from Symfony 2.8, the ``app.user and ...`` check is no longer needed.

Securing other Services
.......................

Expand Down
12 changes: 7 additions & 5 deletions 12 book/service_container.rst
Original file line number Diff line number Diff line change
Expand Up @@ -811,13 +811,15 @@ Injecting the dependency by the setter method just needs a change of syntax:
"property injection".

.. _book-container-request-stack:
.. _injecting-the-request:

Injecting the Request
~~~~~~~~~~~~~~~~~~~~~
Accessing the Request in a Service
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

As of Symfony 2.4, instead of injecting the ``request`` service, you should
inject the ``request_stack`` service and access the ``Request`` by calling
the :method:`Symfony\\Component\\HttpFoundation\\RequestStack::getCurrentRequest`
Whenever you need to access the current request in a service, you can either
add it as an argument to the methods that need the request or inject the
``request_stack`` service and access the ``Request`` by calling the
:method:`Symfony\\Component\\HttpFoundation\\RequestStack::getCurrentRequest`
method::

namespace Acme\HelloBundle\Newsletter;
Expand Down
21 changes: 0 additions & 21 deletions 21 book/templating.rst
Original file line number Diff line number Diff line change
Expand Up @@ -579,10 +579,6 @@ you set `with_context`_ to false).
maps (i.e. an array with named keys). If you needed to pass in multiple
elements, it would look like this: ``{'foo': foo, 'bar': bar}``.

.. versionadded:: 2.3
The `include() function`_ is available since Symfony 2.3. Prior, the
`{% include %} tag`_ was used.

.. index::
single: Templating; Embedding action

Expand Down Expand Up @@ -709,9 +705,6 @@ tags:
array('renderer' => 'hinclude')
) ?>

<!-- The url() method was introduced in Symfony 2.8. Prior to 2.8, you
had to use generate() with UrlGeneratorInterface::ABSOLUTE_URL
passed as the third argument. -->
<?php echo $view['actions']->render(
$view['router']->url('...'),
array('renderer' => 'hinclude')
Expand Down Expand Up @@ -921,8 +914,6 @@ To link to the page, just use the ``path`` Twig function and refer to the route:

.. code-block:: html+php

<!-- The path() method was introduced in Symfony 2.8. Prior to 2.8, you
had to use generate(). -->
<a href="<?php echo $view['router']->path('_welcome') ?>">Home</a>

As expected, this will generate the URL ``/``. Now, for a more complicated
Expand Down Expand Up @@ -1002,8 +993,6 @@ correctly:

<!-- app/Resources/views/Article/recent_list.html.php -->
<?php foreach ($articles in $article): ?>
<!-- The path() method was introduced in Symfony 2.8. Prior to 2.8,
you had to use generate(). -->
<a href="<?php echo $view['router']->path('article_show', array(
'slug' => $article->getSlug(),
)) ?>">
Expand All @@ -1028,12 +1017,6 @@ correctly:
array()
) ?>">Home</a>

.. versionadded:: 2.8
The ``url()`` PHP templating helper was introduced in Symfony 2.8. Prior
to 2.8, you had to use the ``generate()`` helper method with
``Symfony\Component\Routing\Generator\UrlGeneratorInterface::ABSOLUTE_URL``
passed as the third argument.

.. index::
single: Templating; Linking to assets

Expand Down Expand Up @@ -1238,8 +1221,6 @@ is a :class:`Symfony\\Bundle\\FrameworkBundle\\Templating\\GlobalVariables`
instance which will give you access to some application specific variables
automatically:

``app.security`` (deprecated as of 2.6)
The security context.
``app.user``
The current user object.
``app.request``
Expand Down Expand Up @@ -1697,8 +1678,6 @@ key in the parameter hash:

.. code-block:: html+php

<!-- The path() method was introduced in Symfony 2.8. Prior to 2.8, you
had to use generate(). -->
<a href="<?php echo $view['router']->path('article_show', array(
'id' => 123,
'_format' => 'pdf',
Expand Down
5 changes: 0 additions & 5 deletions 5 book/testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -420,11 +420,6 @@ The Client supports many operations that can be done in a real browser::
Accessing Internal Objects
~~~~~~~~~~~~~~~~~~~~~~~~~~

.. versionadded:: 2.3
The :method:`Symfony\\Component\\BrowserKit\\Client::getInternalRequest`
and :method:`Symfony\\Component\\BrowserKit\\Client::getInternalResponse`
methods were introduced in Symfony 2.3.

If you use the client to test your application, you might want to access the
client's internal objects::

Expand Down
18 changes: 0 additions & 18 deletions 18 book/validation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,6 @@ following:
Protected and private properties can also be validated, as well as "getter"
methods (see :ref:`validator-constraint-targets`).

.. versionadded:: 2.7
As of Symfony 2.7, XML and Yaml constraint files located in the
``Resources/config/validation`` sub-directory of a bundle are loaded. Prior
to 2.7, only ``Resources/config/validation.yml`` (or ``.xml``) were loaded.

.. index::
single: Validation; Using the validator

Expand Down Expand Up @@ -882,12 +877,8 @@ the class name or the string ``Default``.
To tell the validator to use a specific group, pass one or more group names
as the third argument to the ``validate()`` method::

// If you're using the new 2.5 validation API (you probably are!)
$errors = $validator->validate($author, null, array('registration'));

// If you're using the old 2.4 validation API, pass the group names as the second argument
// $errors = $validator->validate($author, array('registration'));

If no groups are specified, all constraints that belong to the group ``Default``
will be applied.

Expand Down Expand Up @@ -1248,20 +1239,11 @@ it looks like this::
$emailConstraint->message = 'Invalid email address';

// use the validator to validate the value
// If you're using the new 2.5 validation API (you probably are!)
$errorList = $this->get('validator')->validate(
$email,
$emailConstraint
);

// If you're using the old 2.4 validation API
/*
$errorList = $this->get('validator')->validateValue(
$email,
$emailConstraint
);
*/

if (0 === count($errorList)) {
// ... this IS a valid email address, do something
} else {
Expand Down
2 changes: 1 addition & 1 deletion 2 components/class_loader/debug_class_loader.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ Debugging a Class Loader
.. caution::

The ``DebugClassLoader`` from the ClassLoader component was deprecated
in Symfony 2.5 and will be removed in Symfony 3.0. Use the
in Symfony 2.5 and removed in Symfony 3.0. Use the
:doc:`DebugClassLoader provided by the Debug component </components/debug/class_loader>`.
4 changes: 0 additions & 4 deletions 4 components/config/definition.rst
Original file line number Diff line number Diff line change
Expand Up @@ -446,10 +446,6 @@ and in XML:
<!-- entries-per-page: This value is only used for the search results page. -->
<config entries-per-page="25" />

.. versionadded:: 2.6
Since Symfony 2.6, the info will also be added to the exception message
when an invalid type is given.

Optional Sections
-----------------

Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.