File tree 3 files changed +6
-3
lines changed
Filter options
3 files changed +6
-3
lines changed
Original file line number Diff line number Diff line change @@ -463,8 +463,9 @@ CamelCase to snake_case
463
463
~~~~~~~~~~~~~~~~~~~~~~~
464
464
465
465
In many formats, it's common to use underscores to separate words (also known
466
- as snake_case). However, PSR-1 specifies that the preferred style for PHP
467
- properties and methods is CamelCase.
466
+ as snake_case). However, in Symfony applications is common to use CamelCase to
467
+ name properties (even though the `PSR-1 standard `_ doesn't recommend any
468
+ specific case for property names).
468
469
469
470
Symfony provides a built-in name converter designed to transform between
470
471
snake_case and CamelCased styles during serialization and deserialization
@@ -1005,6 +1006,7 @@ Learn more
1005
1006
A popular alternative to the Symfony Serializer Component is the third-party
1006
1007
library, `JMS serializer `_ (released under the Apache license, so incompatible with GPLv2 projects).
1007
1008
1009
+ .. _`PSR-1 standard` : http://www.php-fig.org/psr/psr-1/
1008
1010
.. _`JMS serializer` : https://github.com/schmittjoh/serializer
1009
1011
.. _Packagist : https://packagist.org/packages/symfony/serializer
1010
1012
.. _RFC3339 : https://tools.ietf.org/html/rfc3339#section-5.8
Original file line number Diff line number Diff line change @@ -338,7 +338,7 @@ type::
338
338
entry_type
339
339
~~~~~~~~~~
340
340
341
- **type **: ``string `` or :class: `Symfony\\ Component\\ Form\\ FormTypeInterface ` **required **
341
+ **type **: ``string `` or :class: `Symfony\\ Component\\ Form\\ FormTypeInterface ` **default **: Symfony \\ Component \\ Form \\ Extension \\ Core \\ Type \\ TextType
342
342
343
343
This is the field type for each item in this collection (e.g. ``TextType ``,
344
344
``ChoiceType ``, etc). For example, if you have an array of email addresses,
Original file line number Diff line number Diff line change @@ -910,6 +910,7 @@ Learn more
910
910
911
911
testing/*
912
912
913
+ * :ref: `Testing a console command <console-testing-commands >`
913
914
* :doc: `The chapter about tests in the Symfony Framework Best Practices </best_practices/tests >`
914
915
* :doc: `/components/dom_crawler `
915
916
* :doc: `/components/css_selector `
You can’t perform that action at this time.
0 commit comments