Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7cda9c0

Browse files
committed
minor#20005 [Validator] Update Url for changing the default value of the requireTld option (MrYamous)
This PR was merged into the 7.1 branch.Discussion----------[Validator] Update Url for changing the default value of the requireTld optionI find it weird to indicate depreciation in the same version as the introduction of this option but I did not have other idea. WDYT?Related tosymfony/symfony#54588Commits-------4add5c3 update Url constraint
2 parents2abe33e +4add5c3 commit7cda9c0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎reference/constraints/Url.rst‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,11 @@ also relative URLs that contain no protocol (e.g. ``//example.com``).
317317

318318
The ``requireTld`` option was introduced in Symfony 7.1.
319319

320+
..deprecated::7.1
321+
322+
Not setting the ``requireTld`` option is deprecated since Symfony 7.1
323+
and will default to ``true`` in Symfony 8.0.
324+
320325
By default, URLs like ``https://aaa`` or ``https://foobar`` are considered valid
321326
because they are tecnically correct according to the `URL spec`_. If you set this option
322327
to ``true``, the host part of the URL will have to include a TLD (top-level domain

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp