8000 Merge branch '2.3' into 2.7 · symfony/symfony-docs@44e170b · GitHub
[go: up one dir, main page]

Skip to content

Commit 44e170b

Browse files
committed
Merge branch '2.3' into 2.7
Conflicts: book/security.rst
2 parents e29b7ab + 31de26f commit 44e170b

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

book/security.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,6 +1220,12 @@ is defined by the ``target`` parameter above (e.g. the ``homepage``).
12201220
Dynamically Encoding a Password
12211221
-------------------------------
12221222

1223+
.. note::
1224+
1225+
For historical reasons, Symfony uses the term *"password encoding"* when it
1226+
should really refer to *"password hashing"*. The "encoders" are in fact
1227+
`cryptographic hash functions`_.
1228+
12231229
If, for example, you're storing users in the database, you'll need to encode
12241230
the users' passwords before inserting them. No matter what algorithm you
12251231
configure for your user object, the hashed password can always be determined
@@ -1428,5 +1434,6 @@ Learn More from the Cookbook
14281434

14291435
.. _`frameworkextrabundle documentation`: https://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/index.html
14301436
.. _`security advisories database`: https://github.com/FriendsOfPHP/security-advisories
1437+
.. _`cryptographic hash functions`: https://en.wikipedia.org/wiki/Cryptographic_hash_function
14311438
.. _`HWIOAuthBundle`: https://github.com/hwi/HWIOAuthBundle
14321439
.. _`SensioDistributionBundle`: https://packagist.org/packages/sensio/distribution-bundle

reference/forms/types/entity.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,14 +181,15 @@ instead of the ``default`` entity manager.
181181
query_builder
182182
~~~~~~~~~~~~~
183183

184-
**type**: ``Doctrine\ORM\QueryBuilder`` or a Closure
184+
**type**: ``Doctrine\ORM\QueryBuilder`` or a Closure **default**: ``null``
185185

186186
Allows you to create a custom query for your choices. See
187187
:ref:`ref-form-entity-query-builder` for an example.
188188

189-
The value of this option can either be a ``QueryBuilder`` object or a Closure.
190-
When using a Closure, you will be passed the ``EntityRepository`` of the entity
191-
as the only argument and should return a ``QueryBuilder``.
189+
The value of this option can either be a ``QueryBuilder`` object, a Closure or
190+
``null`` (which will load all entities). When using a Closure, you will be
191+
passed the ``EntityRepository`` of the entity as the only argument and should
192+
return a ``QueryBuilder``.
192193

193194
Overridden Options
194195
------------------

0 commit comments

Comments
 (0)
0