Skip to content

Commit c63bd46

Browse files
committed
Merge branch '4.2'
* 4.2: Update some articles related to user providers Replaces ProtocolClassValidator for the second example clarify some DateTimeType widget options document deprecation of the scale option
2 parents 65a573c + dbc4157 commit c63bd46

File tree

7 files changed

+392
-232
lines changed

7 files changed

+392
-232
lines changed

_build/redirection_map

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,3 +408,4 @@
408408
/profiler/matchers /profiler
409409
/profiler/profiling_data /profiler
410410
/profiler/wdt_follow_ajax /profiler
411+
/security/entity_provider /security/user_provider

reference/configuration/security.rst

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -234,29 +234,10 @@ statically using the ``dn_string`` config option.
234234
User provider
235235
~~~~~~~~~~~~~
236236

237-
Users will still be fetched from the configured user provider. If you
238-
wish to fetch your users from a LDAP server, you will need to use the
239-
``ldap`` user provider, in addition to one of the three authentication
240-
providers (``form_login_ldap`` or ``http_basic_ldap`` or ``json-login-ldap``).
241-
242-
.. configuration-block::
243-
244-
.. code-block:: yaml
245-
246-
# config/packages/security.yaml
247-
security:
248-
# ...
249-
250-
providers:
251-
my_ldap_users:
252-
ldap:
253-
service: ldap
254-
base_dn: 'dc=symfony,dc=com'
255-
search_dn: '%ldap.search_dn%'
256-
search_password: '%ldap.search_password%'
257-
default_roles: ''
258-
uid_key: 'uid'
259-
filter: '(&({uid_key}={username})(objectclass=person)(ou=Users))'
237+
Users will still be fetched from the configured user provider. If you wish to
238+
fetch your users from a LDAP server, you will need to use the
239+
:doc:`LDAP User Provider </security/ldap>` and any of these authentication
240+
providers: ``form_login_ldap`` or ``http_basic_ldap`` or ``json_login_ldap``.
260241

261242
Using the PBKDF2 Encoder: Security and Speed
262243
--------------------------------------------

reference/forms/types/datetime.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ Defines the ``format`` option that will be passed down to the date field.
7373
See the :ref:`DateType's format option <reference-forms-type-date-format>`
7474
for more details.
7575

76+
The ``date_format`` option does not have any effect when the form is rendered
77+
as an HTML5 datetime input.
78+
7679
date_label
7780
~~~~~~~~~~
7881

@@ -92,6 +95,8 @@ date_widget
9295

9396
.. include:: /reference/forms/types/options/date_widget_description.rst.inc
9497

98+
The ``date_widget`` option is ignored when the ``widget`` option is set to ``single_text``.
99+
95100
.. include:: /reference/forms/types/options/days.rst.inc
96101

97102
placeholder
@@ -185,6 +190,8 @@ time_widget
185190

186191
Defines the ``widget`` option for the :doc:`TimeType </reference/forms/types/time>`.
187192

193+
The ``time_widget`` option is ignored when the ``widget`` option is set to ``single_text``.
194+
188195
.. include:: /reference/forms/types/options/view_timezone.rst.inc
189196

190197
widget

reference/forms/types/integer.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ scale
8989

9090
**type**: ``integer`` **default**: ``0``
9191

92+
.. versionadded:: 4.2
93+
94+
The ``scale`` option is deprecated since Symfony 4.2 and will be removed
95+
in 5.0.
96+
9297
This specifies how many decimals will be allowed until the field rounds the
9398
submitted value (via ``rounding_mode``). This option inherits from
9499
:doc:`number </reference/forms/types/number>` type and is overriden to ``0`` for

security/entity_provider.rst

Lines changed: 0 additions & 159 deletions
This file was deleted.

0 commit comments

Comments
 (0)