File tree 3 files changed +7
-7
lines changed
Filter options
3 files changed +7
-7
lines changed
Original file line number Diff line number Diff line change @@ -459,8 +459,9 @@ CamelCase to snake_case
459
459
~~~~~~~~~~~~~~~~~~~~~~~
460
460
461
461
In many formats, it's common to use underscores to separate words (also known
462
- as snake_case). However, PSR-1 specifies that the preferred style for PHP
463
- properties and methods is CamelCase.
462
+ as snake_case). However, in Symfony applications is common to use CamelCase to
463
+ name properties (even though the `PSR-1 standard `_ doesn't recommend any
464
+ specific case for property names).
464
465
465
466
Symfony provides a built-in name converter designed to transform between
466
467
snake_case and CamelCased styles during serialization and deserialization
@@ -994,6 +995,7 @@ Learn more
994
995
A popular alternative to the Symfony Serializer Component is the third-party
995
996
library, `JMS serializer `_ (released under the Apache license, so incompatible with GPLv2 projects).
996
997
998
+ .. _`PSR-1 standard` : http://www.php-fig.org/psr/psr-1/
997
999
.. _`JMS serializer` : https://github.com/schmittjoh/serializer
998
1000
.. _Packagist : https://packagist.org/packages/symfony/serializer
999
1001
.. _RFC3339 : https://tools.ietf.org/html/rfc3339#section-5.8
Original file line number Diff line number Diff line change @@ -91,9 +91,7 @@ using a special "tag":
91
91
http://symfony.com/schema/dic/services/services-1.0.xsd" >
92
92
93
93
<services >
94
- <service id =" app.exception_listener"
95
- class =" App\EventListener\ExceptionListener" >
96
-
94
+ <service id =" AppBundle\EventListener\ExceptionListener" >
97
95
<tag name =" kernel.event_listener" event =" kernel.exception" />
98
96
</service >
99
97
</services >
@@ -105,7 +103,7 @@ using a special "tag":
105
103
use App\EventListener\ExceptionListener;
106
104
107
105
$container
108
- ->register('app.exception_listener', ExceptionListener::class)
106
+ ->autowire( ExceptionListener::class)
109
107
->addTag('kernel.event_listener', array('event' => 'kernel.exception'))
110
108
;
111
109
Original file line number Diff line number Diff line change @@ -334,7 +334,7 @@ type::
334
334
entry_type
335
335
~~~~~~~~~~
336
336
337
- **type **: ``string `` or :class: `Symfony\\ Component\\ Form\\ FormTypeInterface ` **required **
337
+ **type **: ``string `` or :class: `Symfony\\ Component\\ Form\\ FormTypeInterface ` **default **: Symfony \\ Component \\ Form \\ Extension \\ Core \\ Type \\ TextType
338
338
339
339
This is the field type for each item in this collection (e.g. ``TextType ``,
340
340
``ChoiceType ``, etc). For example, if you have an array of email addresses,
You can’t perform that action at this time.
0 commit comments