Skip to content

Commit 43ac526

Browse files
committed
Merge branch '3.4' into 4.0
* 3.4: Update collection.rst Mention that PSR-1 doesn't recommend CamelCase or anything else Fixed the XML and PHP config instead of the YAML config minor #8091 Update js-datepicker usage for new jQuery UI (AdrianBorodziuk, javiereguiluz) minor #8983 cross-reference console command testing from testing guide (dbu) Fix YAML config bug
2 parents e1e1208 + e89ffa0 commit 43ac526

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

components/serializer.rst

+4-2
Original file line numberDiff line numberDiff line change
@@ -459,8 +459,9 @@ CamelCase to snake_case
459459
~~~~~~~~~~~~~~~~~~~~~~~
460460

461461
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).
464465

465466
Symfony provides a built-in name converter designed to transform between
466467
snake_case and CamelCased styles during serialization and deserialization
@@ -994,6 +995,7 @@ Learn more
994995
A popular alternative to the Symfony Serializer Component is the third-party
995996
library, `JMS serializer`_ (released under the Apache license, so incompatible with GPLv2 projects).
996997

998+
.. _`PSR-1 standard`: http://www.php-fig.org/psr/psr-1/
997999
.. _`JMS serializer`: https://github.com/schmittjoh/serializer
9981000
.. _Packagist: https://packagist.org/packages/symfony/serializer
9991001
.. _RFC3339: https://tools.ietf.org/html/rfc3339#section-5.8

event_dispatcher.rst

+2-4
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,7 @@ using a special "tag":
9191
http://symfony.com/schema/dic/services/services-1.0.xsd">
9292
9393
<services>
94-
<service id="app.exception_listener"
95-
class="App\EventListener\ExceptionListener">
96-
94+
<service id="AppBundle\EventListener\ExceptionListener">
9795
<tag name="kernel.event_listener" event="kernel.exception" />
9896
</service>
9997
</services>
@@ -105,7 +103,7 @@ using a special "tag":
105103
use App\EventListener\ExceptionListener;
106104
107105
$container
108-
->register('app.exception_listener', ExceptionListener::class)
106+
->autowire(ExceptionListener::class)
109107
->addTag('kernel.event_listener', array('event' => 'kernel.exception'))
110108
;
111109

reference/forms/types/collection.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ type::
334334
entry_type
335335
~~~~~~~~~~
336336

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
338338

339339
This is the field type for each item in this collection (e.g. ``TextType``,
340340
``ChoiceType``, etc). For example, if you have an array of email addresses,

0 commit comments

Comments
 (0)