Skip to content

Commit

Permalink
minor symfony#6478 Replace reference to the "request" service (gerryvdm)
Browse files Browse the repository at this point in the history
This PR was submitted for the 3.0 branch but it was merged into the 2.7 branch instead (closes symfony#6478).

Discussion
----------

Replace reference to the "request" service

Change docs to reference the request_stack service instead.

Commits
-------

bf596c6 Replace reference to the "request" service
a9c9865 Merge branch '2.8' into 3.0
5726c9b minor symfony#6471 fix broken merge (xabbuh)
5ba5224 fix broken merge
ffb40b9 Merge branch '2.8' into 3.0
164db85 Merge branch '2.7' into 2.8
b7c70e6 Merge branch '2.8' into 3.0
cba307c Merge branch '2.7' into 2.8
28e6be5 [symfony#6449] Removing choices_as_values on merge
84dbdca Merge branch '2.8' into 3.0
cf17c2c Merge branch '2.7' into 2.8
fb09632 Merge branch '2.8' into 3.0
9b0ec35 Merge branch '2.3' into 2.8
e4650a5 Added March changelog
d380d37 Merge branch '2.8' into 3.0
501c208 Added March changelog
63ee83e Merge branch '2.7' into 2.8
fe40a49 minor symfony#6432 fixed yaml config error (RickieL)
6c42309 fixed yaml config error
5928110 minor symfony#6409 Update 'date' to DateType::class in form.rst (iltar)
31c49b8 Merge branch '2.8' into 3.0
6fb77fb Merge branch '2.7' into 2.8
23abecc Update 'date' to DateType::class in form.rst
d2b6569 Merge branch '2.8' into 3.0
a064e17 Merge branch '2.7' into 2.8
8666655 minor symfony#6390 Reworded the example about $deep param (Oliboy50, javiereguiluz)
c9b54db minor symfony#6381 [Form] [Cookbook] Correctly setup unit tests with dependencies (corphi)
fba2da2 Calling the parent implementation is mandatory.
09bc39e Reworded the example about $deep param
b20e1ca bug symfony#6377 Update "bootstrap.php.cache" to "autoload.php" (guilliamxavier)
c0a441e bug symfony#6368 [cookbook] Made list of form types more consistent (AAstakhov)
24c2404 feature symfony#6274 Update Doctrine UTF8 docs (mcfedr)
aa6fb92 Update "bootstrap.php.cache" to "autoload.php"
993fc45 Made list of types more consistent
f24b8f8 Merge branch '2.8' into 3.0
e87e9ee Merge branch '2.7' into 2.8
2e03a7e minor symfony#6350 Fix reference to app folder (kainjow)
68650b8 Fix reference to app folder
a297099 Merge branch '2.8' into 3.0
01133fd Merge branch '2.7' into 2.8
dcd1126 Update Doctrine UTF8 docs
230b4f6 Merge branch '2.8' into 3.0
d85f13a Merge branch '2.7' into 2.8
f82b32e [HttpFoundation] ParameterBag::get() $deep param
ab4bfe5 Merge branch '2.8' into 3.0
8e59931 Merge branch '2.7' into 2.8
41393d9 Added February changelog
9b0dccf Merge branch '2.8' into 3.0
778a7f9 Fix faulty merge
11eb093 Added February changelog
8e08e35 Merge branch '2.7' into 2.8
0f32eef bug symfony#6322 [DependencyInjection] fix autowiring docs (eXtreme)
28082dc minor symfony#6323 [DependencyInjection] Add Autowiring keyword (theofidry)
7874bd0 minor symfony#6286 [HttpFoundation] Fix typo for ParameterBag getters - 3.0 (rendler-denis)
e29233c bug symfony#6324 Fixed UserCheckerInterface importing (VIs-a-vis)
25b3aed Update user_checkers.rst
fb4c526 bug symfony#6326 Missing svn:ignore (f-plante)
1a6e4c5 Missing svn:ignore
bfc7976 Add Auto-wiring keyword
bcba4f4 Remove "paamayim nekudotayim" breaking configuration blocks in DI autowiring docs
581f46c minor symfony#6299 Removed True and False constraints from reference (edefimov)
dcb5a54 Removed True and False constraints from reference
a499d12 minor symfony#6298 Update dependency_injection.rst because it has an error. (joserprieto)
06eee41 Update dependency_injection.rst because it has an error.
8222639 bug symfony#6292 Fix setting permission for var subdirectories (voda)
657ba99 Merge branch '2.8' into 3.0
3d3bac0 [symfony#6263] Javier's comments
11e4532 minor symfony#6263 [Cookbook][Debugging] reflect behavior changes in cache generation (xabbuh)
dbee0df Fix setting permission for var subdirectories
c440050 [HttpFoundation] Fix typo for ParameterBag getters
8fe4609 minor symfony#6277 remove dot in front of colon (xabbuh)
61ef5bb remove dot in front of colon
6ef2099 reflect behavior changes in cache generation
4924513 minor symfony#6257 [Components][Form] remove outdated caution (xabbuh)
aa33bfa [Components][Form] remove outdated caution
0103364 [symfony#6032] fix link to ROT13 description
6b3f5f4 Merge branch '2.8' into 3.0
c00626c Merge branch '2.7' into 2.8
d1e3024 [symfony#6032] some tweaks for the autowiring feature
fb7f15e feature symfony#6032 [DependencyInjection] Autowiring doc (dunglas)
995bd4f [DependencyInjection] Autowiring doc
be7efd6 minor symfony#6253 [Security] Include guard firewall configuration sample. (calinpristavu)
63c57dd [Security] Include guard firewall configuration sample.
f0c0fac feature symfony#5886 [2.8] Add "How to Use Multiple Guard Authenticators" cookbook documentation (mheki)
121196d [2.8] Add "How to Use Multiple Guard Authenticators" cookbook documentation
cf9ce3d Merge branch '2.8' into 3.0
a447862 Merge branch '2.7' into 2.8
b986eb1 minor symfony#6242 Removed all 2.x versionadded directives (WouterJ)
f8b560d Removed all 2.x versionadded directives
d9f6264 Merge branch '2.8' into 3.0
7ede792 Merge branch '2.7' into 2.8
811671d Merge branch '2.8' into 3.0
52f14f8 Merge branch '2.7' into 2.8
266f7bf Fix syntax
fe1dfc7 Merge branch '2.8' into 3.0
1d1ec81 Merge branch '2.7' into 2.8
fc3c9f3 Merge branch '2.7' into 2.8
026d9ed Added January changelog
f91bcef Merge branch '2.8' into 3.0
9fcd140 Added January changelog
2651431 Merge branch '2.7' into 2.8
4ffe998 Added December changelog
cdb8b24 Merge branch '2.8' into 3.0
eb1c1ae Added December changelog
f1ba10e Merge branch '2.7' into 2.8
35a520d [symfony#6090] some small tweaks
bcc1cc4 minor symfony#6090 Reworded the article about profiler storage (xavierleune, javiereguiluz)
99c8abe minor symfony#6235 symfony#6232 update forms as services section (backbone87)
be54971 symfony#6232 update forms as services section
dd8585d [symfony#5330] some tweaks
47f6b3b feature symfony#5530 [Cookbook, Security] Added user_checkers.rst (iltar)
89b20a8 [Cookbook, Security] Added user_checkers.rst
2c9b1ec Merge branch '2.8' into 3.0
fe2e8e7 Merge branch '2.7' into 2.8
16cc4bc Merge branch '2.8' into 3.0
b56880b Merge branch '2.7' into 2.8
075a81d feature symfony#5920 Document automatic registration of extension compiler passes (WouterJ)
353df25 Document automatic registration of extension compiler passes
e901fbc bug symfony#6081 [cookbook New project] Fix symfony version and initial add (bigs21)
41d43dd feature symfony#5483 [FrameworkBundle] Name converter of Serializer (dunglas)
7a4d9fc [FrameworkBundle] Name converter of Serializer
e821b97 feature symfony#6058 Update Testing Form Types article for 2.8 refactorings (WouterJ)
906d55a Update Testing Form Types article for 2.8 refactorings
53febf0 minor symfony#6044 Added note about the hash_equals polyfill (WouterJ)
946c5c2 Added note about the hash_equals polyfill
f42057a Merge branch '2.8' into 3.0
0d92394 Merge branch '2.7' into 2.8
8e8144f minor symfony#6213 Update form_collections.rst (insekticid)
bb96dc6 Update form_collections.rst
f7adcfa minor symfony#6228 removed unnecessary exception from repository (gondo)
0e288a2 removed unnecesary exception form repository
ab57eed minor symfony#6170 change translation getMessages() to getCatalogue() (snoek09)
06ca405 change translation getMessages() to getCatalogue()
06c76aa minor symfony#6211 Remove 2.3.* from composer snippets in the form component doc (Nicofuma)
97ef850 Remove 2.3.* from composer snippets in the form component doc
41e4f30 minor symfony#6225 [Reference][Forms] add versionadded directive for range type (xabbuh)
211f3a6 add versionadded directive for range type
03c6605 Merge branch '2.8' into 3.0
bce32e2 minor symfony#6199 fix types (garak)
fcdb82b fix types
372704b Revert "revert form login CSRF changes on wrong branch"
3d1e8a7 Merge branch '2.7' into 2.8
beb0d3a Merge branch '2.8' into 3.0
53726dd Merge branch '2.7' into 2.8
50c3fb2 [symfony#6204] fix CS
50286bc minor symfony#6204 Expected: semicolon (cn007b)
ab2f9aa Expected: semicolon
b385935 minor symfony#6182 Latest demo has no bin folder (Jace25)
8b31d63 Merge branch '2.8' into 3.0
15003d8 Merge branch '2.7' into 2.8
9944eca Latest demo has no bin folder
8e91949 minor symfony#6166 Fix by_reference deprecated FormType::class (nemo-)
5d1806e Fix by_reference deprecated FormType::class
c97d5bf Merge branch '2.8' into 3.0
62a8755 minor symfony#6082 change app/check.php for 3.0 (nanocom)
f398b03 Merge branch '2.7' into 2.8
e9e5b9c minor symfony#6149 Reference to session + Corrected sample code char (sfdumi)
fc32f7f Reference to session + Corrected sample code char
f31a965 Merge branch '2.8' into 3.0
f792232 Merge branch '2.7' into 2.8
2d31a0f minor symfony#6130 [Security][Guard] Completed start method signature (jeremyFreeAgent)
b6b6a39 [Security][Guard] Completed start method signature
24e2da6 minor symfony#6080 Removed doc about getting original parameter value from ParameterBag (edefimov)
1e1ecc4 Removed doc about getting original parameter value from ParameterBag
14d2afb feature symfony#6136 Update directory permissions to make var/ writable (andrerom)
61a4ae4 feature symfony#5600 [DependencyInjection] Documented the ability of define the service decoration priority (dosten)
1c1c0e4 [symfony#6108] remove remaining references to getName()
2bc4f55 minor symfony#6108 [Form] remove the getName() function as it is deprecated (aybbou)
c77773a minor symfony#6129 Added new links to the Symfony screencast series at KnpU (javiereguiluz)
8f6038b minor symfony#6139 Update the doc to change a deprecated use case (ChristopheBoucaut)
ced63f2 Update the doc to change a deprecated use case
d6456ad Update dir permissions to reflect var being writable
f18a1aa Update directory permissions to make var/ writable
6ea7370 Added new links to the Symfony screencast series at KnpU
2db6e18 Merge branch '2.8' into 3.0
84ded6c Merge branch '2.7' into 2.8
ca8916c remove trailing whitespace
66b2469 Merge branch '2.8' into 3.0
b602b9c Merge branch '2.7' into 2.8
e9a92af [symfony#6120] remove unneeded link to readme file
3775fc0 Merge branch '2.8' into 3.0
be32e96 minor symfony#6120 fix README requirements link (garak)
f95ca48 Merge branch '2.7' into 2.8
fb5ad59 minor symfony#6121 [MicroKernel] Fixed the display of a code block (jeremyFreeAgent)
acbadd2 [MicroKernel] Fixed the display of a code block
35c2b00 fix README requirements link
9df83c0 Merge branch '2.8' into 3.0
32eddf7 Merge branch '2.7' into 2.8
bd29146 bug symfony#6115 [Form] Fix syntax error in code snippet (valisj)
75edc24 [Form] Fix syntax error in code snippet
c7767ad Merge branch '2.8' into 3.0
172b72b Merge branch '2.7' into 2.8
5aa34c7 minor symfony#6110 [Security][Guard] Fixed a typo (jeremyFreeAgent)
3f7191f minor symfony#6105 Removed deprecated methods from VoterInterface (edefimov)
051f050 [Security][Guard] Fixed a typo
5868190 Documented the ability of define service decoration priority
2d72f3e [Form] remove the getName() function as it is deprecated
6eeb61e Merge branch '2.8' into 3.0
889db17 minor symfony#6106 Remove repetition in text (dominikhajduk)
10ae1f0 Merge branch '2.7' into 2.8
fcbcf1c Remove repetition in text
874c840 Removed deprecated methods from VoterInterface
46ff6f1 minor symfony#6014 [2.8][Form] entry_type option: replace "in favor" misuses (ogizanagi)
6077f91 [Form] entry_type option: replace "in favor" misuses
64f8a1e Merge branch '2.8' into 3.0
ddd3478 Merge branch '2.7' into 2.8
3a7624f minor symfony#5586 [2.8] Remove 2.6 versionaddeds as version reached eom (WouterJ)
bcbb87f Fixed the Symfony version number
bcc5634 Finished the rewording of the "profiler storage" article
83e73c2 [symfony#6086] Use a more generic wording to avoid errors in the future
4b30758 bug symfony#6086 Update form_customization.rst (vudaltsov)
36d9470 Update form_customization.rst
1f5ee01 change app/check.php for 3.0
6b6ac3d Fix symfony version and initial add
ae53c89 Merge branch '2.8' into 3.0
cf2fb97 Merge branch '2.7' into 2.8
92610e3 [symfony#5993] fix doubled "interface"
02db120 minor symfony#5993 [Cookbook] [Security] Use UserLoaderInterface instead of UserProviderInterface (ogizanagi)
afcbc51 minor symfony#6071 Fix syntax (WouterJ)
eb6ce36 Fix syntax
f625981 minor symfony#6066 Update location of `app/check.php` to `bin/symfony_requirements` (Kevinrob)
d33d77a Update location of `app/check.php` to `bin/symfony_requirements`
ec5671d Merge branch '2.8' into 3.0
e67deaa Merge branch '2.7' into 2.8
79ec09a [Cookbook] [Security] Use UserLoaderInterface instead of UserProviderInterface
691616c Remove 2.6 versionaddeds as version reached eom
3b2f4d0 [symfony#5966] Removed no longer used ref target
2648a7d feature symfony#5966 Remove deprecated StringUtils from WSSE custom auth provider (pimpreneil)
786096e Update Symfony version to 3.0
bfc54c6 Merge branch '2.8' into 3.0
fac6023 [symfony#5662] Update versions to 2.8
58979a2 Merge branch '2.7' into 2.8
4cd6dc2 Merge branch '2.8' into 3.0
b2b1239 Merge branch '2.7' into 2.8
a5114d2 feature symfony#5977 RequestStack parameter is required since 3.0 (leunggamciu)
cb54c5e RequestStack parameter is required since 3.0
de11d3e minor symfony#6027 Update guard-authentication.rst (rvanginneken)
e23f2d4 minor symfony#6025 Update guard-authentication.rst (rvanginneken)
a6ed958 minor symfony#6038 Fix symfony#6037 (zsturgess)
a7effb8 Fix symfony#6037
7c60ea1 Merge branch '2.8' into 3.0
5275cfb Merge branch '2.7' into 2.8
a46a856 Update guard-authentication.rst
77999b2 Update guard-authentication.rst
32a63d8 ProfilerStorage configuration
168072b [symfony#5973] some minor tweaks
433dd04 Added caution notes about the removal of AsseticBundle in 2.8/3.0
3ad7f26 Merge branch '2.8' into 3.0
7d0a00a Merge branch '2.7' into 2.8
744bed4 Merge branch '2.8' into 3.0
43b0eb8 Merge branch '2.7' into 2.8
10b2a29 minor symfony#6004 Fix for small typo (djoos)
9e64dd4 Fix for small typo
276aa1f Added october and november changelog
55a015e Merge branch '2.8' into 3.0
2aeffdf Added october and november changelog
9c264b5 Merge branch '2.7' into 2.8
099ea85 Remove deprecated StringUtils from WSSE custom auth provider
2ad1ba5 [symfony#5954] minor tweaks
d58cb56 feature symfony#5954 Fix symfony#5236 [2.8][Translation] specify additional translation loading paths (Pierre Maraitre, Balamung)
e19f7a1 [symfony#5957] remove deep parameter documentation
bf48c59 Merge branch '2.8' into 3.0
63dd246 Merge branch '2.7' into 2.8
5568146 minor symfony#5940 [Cookbook][ServiceContainer] move filename comment to the top of the code block (xabbuh)
7d922b9 [symfony#5956] change app/console back to bin/console
dcde292 Merge branch '2.8' into 3.0
00dc17c Merge branch '2.7' into 2.8
8d21262 Merge branch '2.8' into 3.0
78d11d8 Merge branch '2.7' into 2.8
ecc2ca0 minor symfony#5964 Missing n in Column (joshuataylor)
bc2447d Missing n in Column
46de0d6 Delete pmaraitre.xml
b3fa941 Adding configuration examples for other formats
2cabebe Replace with a shorter phrase
8c17033 [symfony#5948] Very minor detail
7a64f05 feature symfony#5948 Update 3.0 docs accordingly to min PHP version requirement (ogizanagi)
0d8eadc Wrong code-block tag
c220cd0 Clearer formulation
40b7b78 Double "the"
f87f5f4 Fix symfony#5236 [Translation] specify additional translation loading paths
09d9b29 minor symfony#5924 Removed note about removed content (WouterJ)
d577848 Update docs accordingly to min PHP version requirement
d0248d6 minor symfony#5938 Add proper use of the password type (themccallister)
7bd1f22 Add proper use of the password type
d5d68ab move filename comment to the top of the code block
340ec5f Adding a note thanks to Stof
3083e90 [symfony#5917] Finding some more places with the old directory structure referenced
0e53bb5 [symfony#5917] Adding bin
89f4d25 feature symfony#5917 [3.0][Cookbook] Use the 3.0 directory structure (WouterJ)
8236647 feature symfony#5916 [3.0][Best Practices][Quick Tour] Use the 3.0 directory structure (WouterJ)
dbf0d31 feature symfony#5913 [3.0][Book] Use the 3.0 directory structure (WouterJ)
2daccc3 Merge branch '2.8'
8d61eb6 Merge branch '2.7' into 2.8
40a52c8 feature symfony#5907 Updating some places to use the new CustomUserMessageAuthenticationException (weaverryan)
3d67202 tweaks thanks to the guys
1a27539 removing scope reference
3843cda removing deprecation note on a section that was removed
eff9733 removing more scope stuff
81c7572 Removed scopes article
35ae50c Merge branch '2.8'
4ad3bce Merge branch '2.7' into 2.8
d62fa0a Finding more old form references
7bb2785 Merge branch '2.8'
41670b0 [symfony#5922] Tweaks thanks to reviewers
93a08f3 feature symfony#5922 Added minimal cookbook article about the shared flag (WouterJ)
0dfc7bf feature symfony#5908 Voter update (weaverryan)
31f6e3d Many tweaks thanks to a great review
3a59f72 feature symfony#5909 More 2.8 form updates (weaverryan)
b094312 language tweak
8427c3d feature symfony#5927 Use path() and url() PHP templating helpers (WouterJ)
757e159 feature symfony#5926 Update voter section of best practices (WouterJ)
bb1a9b7 feature symfony#5921 [2.8] Document some Security changes (WouterJ)
d131449 several other tweaks
feb68dd Completely updating the form type reference section for the text -> TextType changes
a4ad744 Use path() and url() PHP templating helpers
68da041 Update voter section of best practices
943ee0c Added minimal cookbook article about shared
abad91d Removed note about removed content
0526ca0 Document deprecation of supports{Attribute,Class}() methods
22026ee Document Security key to secret renamings
4036d26 Use new Simple{Form,Pre}AuthenticatorInterface namespaces
25ae8c1 Applied suggestions
47e11f8 Applied comments
f2be12a Updated directory structures
df20095 Testing changes
ef613f6 app/SymfonyRequirements.php -> bin/SymfonyRequirements.php
af7052b app/bootstrap.php.cache -> var/bootstrap.php.cache
6614c0f app/logs -> var/logs
b3da3b7 app/cache -> var/cache
b6d93f0 app/phpunit.xml.dist -> phpunit.xml.dist
bea4a0c app/console -> bin/console
c6d436b [QuickTour] Use new directory structure
215c36d [BestPractices] Use new directory structure
ed43015 Prefix commands with 'php'
0d69414 Updating 'Exploring the Project'
6b5c977 app/bootstrap.php.cache -> var/bootstrap.php.cache
3318f2e app/(cache|logs) -> var/(cache|logs)
1461bdc app/phpunit.xml.dist -> phpunit.xml.dist
8794a4d app/console -> bin/console
5d0e6b2 tweaks thanks to Javier
a4c7d6e adding a section about calling isGranted() from within a voter
20cead6 Reworking the voter article for the new Voter class
832a12a fixing build error
3117df5 Another huge batch of changes for the form type changes in 2.8
4799a7c minor tweaks symfony#5834
3ebf2d0 Fixing bad merge
9458a09 feature symfony#5834 Updated form aliases to FQCNs for forms in book and component (hiddewie)
329182d Merge branch '2.7' into 2.8
f3a1355 feature symfony#5265 Documentation for the new Guard authentication style (weaverryan)
51720c7 Many fixes thanks to great review from ogizanagi, javiereguiluz and others
1eb5f23 Updating some places to use the new CustomUserMessageAuthenticationException
5330c43 feature symfony#5899 Adding the MicroKernel article (weaverryan)
e59d351 tweaks thanks to WouterJ and javiereguiluz
af97ce1 Merge branch '2.8'
5a361ee Merge branch '2.7' into 2.8
e103627 Fixed wrong indendation
f8b080d Found more places which use old form types
3237a34 Updated form constant usage
3ab3830 Fixed PHP 5.5+ reference in form component
291a42a Fixed removed XML tag in form book
0820e69 Updated form aliases to FQCNs for forms in book and component
4752d4c adding one clarifying message
80c637d adding the MicroKernel article
9782ff1 adding toc entries
62dcae3 Using JsonResponse + cleanup
440fe6f revamping Guard article
bfce91b Fixing minor comments
9e411fe I'm extending the abstract class - so mention that. Also adding anonymous
ac107c7 WIP documentation for the new guard auth
f965e3a feature symfony#5891 Removed the comments about the is_granted() issues in non-secure pages (javiereguiluz)
1361715 Removed the comments about the is_granted() issues in non-secure pages
0061abe minor symfony#5868 [2.8] Make screenshots with the new profiler/web dev toolbar design (WouterJ)
267e898 Merge branch '2.8'
0f6fb0d Merge branch '2.7' into 2.8
d01621d Remove hello_fabien.png as it's not used
59ac6e5 Make screenshots with the new profiler/web dev toolbar
8465e85 Merge branch '2.8'
0b3985d Merge branch '2.7' into 2.8
532b0a4 [symfony#5835] Added versionadded
8f24268 feature symfony#5835 Updated CssSelector code example to use the new Converter (hiddewie)
62d9a15 minor symfony#5807 Minor rewordings for the "deprecated" service option (javiereguiluz)
d8db51a Merge branch '2.8'
9068bc0 Merge branch '2.7' into 2.8
dfb9b16 Used :: for code block
df4fc7e Updated for CssSelectorConverter class name
9392f80 Updated CssSelector code example to use the new Converter
f7f9733 minor symfony#5817 fix version for `entry_options` and `entry_type` (craue)
dc5a831 fixed version for `entry_options` and `entry_type`
d7ae2a0 Merge branch '2.8'
e406c3b Merge branch '2.7' into 2.8
3c37397 Minor rewordings for the "deprecated" service option
71d51f8 Merge branch '2.8'
f4ba8f1 Merge branch '2.7' into 2.8
b785d35 Merge branch '2.8'
676c75f Merge branch '2.7' into 2.8
9569e2d Merge branch '2.8'
2255de7 Removing getName() as it's not needed in 2.8
3787061 Merge branch '2.7' into 2.8
21931ed Fixing build error
61d904f feature symfony#5051 Rename CollectionType entry options (WouterJ)
1b00278 Rename CollectionType entry options
a0b06ae Merge remote-tracking branch 'origin/master'
622b149 Merge branch '2.7' into 2.8
b13593e Merge branch '2.8'
b03367c Merge branch '2.7' into 2.8
45381ac [symfony#5623] don't configure default constraint message
f64d406 feature symfony#5623 [Validator] added BIC validator (mvhirsch)
7911fe1 [Validator] added BIC validator
46096d3 Merge branch '2.8'
3da6681 Merge branch '2.7' into 2.8
c9a4bbf [symfony#5689] Some minor syntax fixes
44f8496 feature symfony#5689 [DI] Add some documentation for the deprecation feature (Taluu)
1e1b036 [DI] Add some documentation for the deprecation feature
0e3f25b Merge branch '2.8'
f8c9ce3 Merge branch '2.7' into 2.8
6e8d5fc [symfony#5761] add versionadded directive
5faa84c minor symfony#5761 [DX] [Security] Renamed key to secret (SongoQ)
18c7f04 Remember me, Renamed key to secret
6468cd5 feature symfony#5745 [Translation] Ability to format a message catalogue without actually writing it. (aitboudad)
d862ee8 minor symfony#5561 Change default value of cookie_httponly (jderusse)
1b91720 Merge branch '2.8'
3ffe2e5 Merge branch '2.7' into 2.8
a906993 minor symfony#5730 Remove documentation of deprecated console shell (Tobion)
0776efe [symfony#5702] add Foundation theme to example config
db48bf7 feature symfony#5702 Added a reference to the Foundation form theme (totophe)
23c7798 Added a reference to the Foundation form theme
4d63c3a [symfony#5468] remove outdated warning
cc9db34 Merge branch '2.7' into 2.8
7e3ab6f [Translation] Ability to format a message catalogue without dumping it.
14bea43 Remove documentation of deprecated console shell
194f5cc Merge branch '2.8'
25fe737 Merge branch '2.7' into 2.8
a46560c Merge branch '2.8'
6a01917 Merge branch '2.7' into 2.8
fbc7a8a Merge branch '2.8'
8d66137 Merge branch '2.7' into 2.8
b1ba29d Merge branch '2.8'
de141d5 Merge branch '2.7' into 2.8
9f8d766 Merge branch '2.8'
f96eecf Merge branch '2.7' into 2.8
bb2f991 Added August changelog
7c926c6 Merge branch '2.8'
d86bec8 Merge branch '2.7' into 2.8
3a4e8ca Merge branch '2.8'
a677694 Merge branch '2.7' into 2.8
1941e85 [symfony#5480] Adding missing map entry (added 2 so it's easier to find)
a30b0fa Merge branch '2.8'
20f2ff3 Merge branch '2.7' into 2.8
7eaf928 Merge branch '2.8'
84e2495 Merge branch '2.7' into 2.8
26ca438 minor symfony#5579 [3.0] Remove mentions of Symfony1 (WouterJ)
a991ea1 Merge branch '2.8'
7f05db4 Merge branch '2.7' into 2.8
feb2ab1 Remove mentions of Symfony1
b25b9e5 Merge branch '2.8'
ed71759 Merge branch '2.7' into 2.8
6fc096e Merge branch '2.8'
3bdfec4 Merge branch '2.7' into 2.8
e0a8dfe Merge branch '2.8'
3e60dda Merge branch '2.7' into 2.8
135d4b8 Added July changelog
8a2205c Merge branch '2.8'
6383740 Added July changelog
d65a04f Merge branch '2.7' into 2.8
ee7f14f Merge branch '2.8'
eafdb8c Merge branch '2.7' into 2.8
fceaa9f feature symfony#5374 Remove deprecated parameters (norkunas)
43565d9 minor symfony#5498 [WIP] Added caution notes about the deprecation of container scopes (javiereguiluz)
dc93af2 Merge branch '2.8'
4ab47cc Merge branch '2.7' into 2.8
489adc2 Merge branch '2.8'
a20ea5d Merge branch '2.7' into 2.8
14b39c3 Merge branch '2.8'
0281f61 Merge branch '2.7' into 2.8
e6c8b6c Change default value of cookie_httponly
7711e97 Merge branch '2.8'
74cd23b Merge branch '2.7' into 2.8
2a30c19 Merge branch '2.8'
343b349 Merge branch '2.7' into 2.8
1739549 [symfony#5521] Added versionadded directive
2f98474 feature symfony#5521 [Cookbook][WebServer] symfony#5504 add a tip for the --force option (vincentaubert)
6603c33 Merge branch '2.8'
3b829c0 Merge branch '2.7' into 2.8
e166d69 Merge branch '2.8'
befbf7b Merge branch '2.7' into 2.8
f4b7d7f feature symfony#5458 HTML5 range documentation (harikt)
b77b148 Merge branch '2.8'
79a1902 Merge branch '2.7' into 2.8
571ed5b Merge branch '2.7' into 2.8
2c6aa2f Merge branch '2.8'
dc173b6 Merge branch '2.7' into 2.8
b88a17e [Cookbook][WebServer] symfony#5504 add a tip for the --force option on server:start
55a841d Merge branch '2.8'
7c967ed Merge branch '2.7' into 2.8
2bb0d16 Merge branch '2.8'
8fadb17 Merge branch '2.7' into 2.8
3244eed Merge branch '2.8'
654b36c Merge branch '2.7' into 2.8
6cc3445 Merge branch '2.7'
2f65bf2 Merge branch '2.7' into 2.8
99a996c Added caution notes about the deprecation of container scopes
11237e7 Merge branch '2.8'
2c1328e Merge branch '2.7' into 2.8
2863079 Fix moving the mapped down as per @xabbuh
abf3e8e Fix the rendering issue
3c6ff76 Fix issues reported by @snoek09 . Thank you.
b3a32af Merge branch '2.8'
cb482dc Merge branch '2.7' into 2.8
3cdbc7c Merge branch '2.8'
0436ee7 Merge branch '2.7' into 2.8
7d6737b Merge branch '2.8'
bef92ec Added June changelog
ceebee0 Merge branch '2.7' into 2.8
e08724e Merge branch '2.8'
273cab9 Merge branch '2.7' into 2.8
0ef7e1a Merge branch '2.8'
9cbf3d4 Merge branch '2.7' into 2.8
cbf8fd7 feature symfony#5409 [Reference] document new Doctrine APC cache service (xabbuh)
cc87822 Merge branch '2.8'
acff5b0 Merge branch '2.7' into 2.8
a2c3f21 Make the necessary changes mentioned by @xabbuh and add example for form
a45a393 Merge branch '2.7' into 2.8
d4d1f12 Starting with range documentation
464b578 feature symfony#5360 [Serializer] Array Denormalization (derrabus)
9718c14 [Serializer] Array Denormalization
dd0e33f minor symfony#3782 [Form] Deprecate read_only option (snoob)
c9e8634 [symfony#3782] Deprecating the read_only option
485c8a0 document new Doctrine APC cache service
2d430dc Merge branch '2.8'
0fe1050 Merge branch '2.7' into 2.8
41d1733 Merge branch '2.8'
9538919 Merge branch '2.7' into 2.8
a68ff44 Merge branch '2.8'
bfea184 Merge branch '2.7' into 2.8
06aed96 feature symfony#4354 [WCM] Added depreciation note for the cascade_validation constraint (peterrehm)
22a87b5 Added depreciation note for the cascade_validation constraint and updated position of depreciation notes
d01d7ab Remove deprecated parameters
078bb2d Merge branch '2.8'
f78cab7 Merge branch '2.8'
6a9a26a Merge branch '2.8'
d6c5d5b Merge branch '2.8'
ed88e1c bug symfony#5328 Update create_form_type_extension.rst (jackdelin)
78bab15 Merge branch '2.8'
0c089ec Update create_form_type_extension.rst
68f51df Merge branch '2.8'
c3fd4f5 Merge branch '2.8'
7cadcdc Merge branch '2.8'
2d64dd5 Merge branch '2.8'
c2b92e1 Merge branch '2.8'
12d8531 Merge branch '2.8'
25c9705 Merge branch '2.8'
de9b3d5 Merge branch '2.8'
c1cbb9a Merge branch '2.8'
643f4c4 Merge branch '2.8'
041b2af Merge branch '2.8'
83636f0 Merge branch '2.8'
f0429d7 Merge branch '2.8'
701f2cf Merge branch '2.8'
b74593c Merge branch '2.8'
2e86186 Merge branch '2.8'
c4e07cc Merge branch '2.7'
e84182d Added March changelog
56fe069 Merge branch '2.7'
392398b Merge branch '2.7'
5dd50f5 Merge branch '2.7'
7681e39 Merge branch '2.7'
3fb0d42 Merge branch '2.7'
f24c84f Merge branch '2.7'
feb621b Merge branch '2.7'
a2395ef minor symfony#5054 [Changelog] fix changelog syntax (xabbuh)
515e87c Merge branch '2.7'
653ac94 fix changelog syntax
1a587c5 Added February changelog
  • Loading branch information
wouterj committed Apr 18, 2016
2 parents 351f796 + bf596c6 commit 139e2e7
Show file tree
Hide file tree
Showing 285 changed files with 4,367 additions and 4,141 deletions.
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
62 changes: 20 additions & 42 deletions best_practices/forms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,20 @@ form in its own PHP class::
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
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)
;
}

Expand All @@ -42,19 +45,14 @@ form in its own PHP class::
'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

0 comments on commit 139e2e7

Please sign in to comment.