-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Documented the checkDNS option of the Url validator #5426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
75da2f3
[Validator] Updated documentation of URL validator
saro0h bb3dd4e
Simplified the first example and added more examples
javiereguiluz 1d3b192
Boolean -> boolean
javiereguiluz a2fd9ef
Fixed the order of the examples
javiereguiluz 5bcd48d
Added the "payload" option back (was removed by mistake)
javiereguiluz a04b4ac
Fixed some errors and made some simplifications
javiereguiluz 2becf60
Reordered the configuration blocks of the first example
javiereguiluz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fixed the order of the examples
- Loading branch information
commit a2fd9ef3439c057d2b8a9cf2f5b208a13ae56ff2
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,15 +86,6 @@ This message is shown if the URL is invalid. | |
|
||
.. configuration-block:: | ||
|
||
.. code-block:: yaml | ||
|
||
# src/Acme/BlogBundle/Resources/config/validation.yml | ||
Acme\BlogBundle\Entity\Author: | ||
properties: | ||
bioUrl: | ||
- Url: ~ | ||
message: The url "{{ value }}" is not a valid url. | ||
|
||
.. code-block:: php-annotations | ||
|
||
// src/Acme/BlogBundle/Entity/Author.php | ||
|
@@ -112,6 +103,15 @@ This message is shown if the URL is invalid. | |
protected $bioUrl; | ||
} | ||
|
||
.. code-block:: yaml | ||
|
||
# src/Acme/BlogBundle/Resources/config/validation.yml | ||
Acme\BlogBundle\Entity\Author: | ||
properties: | ||
bioUrl: | ||
- Url: ~ | ||
message: The url "{{ value }}" is not a valid url. | ||
|
||
.. code-block:: xml | ||
|
||
<!-- src/Acme/BlogBundle/Resources/config/validation.xml --> | ||
|
@@ -158,15 +158,6 @@ the ``ftp://`` type URLs to be valid, redefine the ``protocols`` array, listing | |
|
||
.. configuration-block:: | ||
|
||
.. code-block:: yaml | ||
|
||
# src/Acme/BlogBundle/Resources/config/validation.yml | ||
Acme\BlogBundle\Entity\Author: | ||
properties: | ||
bioUrl: | ||
- Url: ~ | ||
protocols: [http, https, ftp] | ||
|
||
.. code-block:: php-annotations | ||
|
||
// src/Acme/BlogBundle/Entity/Author.php | ||
|
@@ -184,6 +175,15 @@ the ``ftp://`` type URLs to be valid, redefine the ``protocols`` array, listing | |
protected $bioUrl; | ||
} | ||
|
||
.. code-block:: yaml | ||
|
||
# src/Acme/BlogBundle/Resources/config/validation.yml | ||
Acme\BlogBundle\Entity\Author: | ||
properties: | ||
bioUrl: | ||
- Url: ~ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here (and I prefer |
||
protocols: [http, https, ftp] | ||
|
||
.. code-block:: xml | ||
|
||
<!-- src/Acme/BlogBundle/Resources/config/validation.xml --> | ||
|
@@ -234,17 +234,6 @@ option to ``true``: | |
|
||
.. configuration-block:: | ||
|
||
.. code-block:: yaml | ||
|
||
# src/Acme/BlogBundle/Resources/config/validation.yml | ||
Acme\BlogBundle\Entity\Author: | ||
properties: | ||
bioUrl: | ||
- Url: ~ | ||
message: The url "{{ value }}" is not a valid url. | ||
protocols: [http, https] | ||
checkDNS: true | ||
|
||
.. code-block:: php-annotations | ||
|
||
// src/Acme/BlogBundle/Entity/Author.php | ||
|
@@ -264,6 +253,17 @@ option to ``true``: | |
protected $bioUrl; | ||
} | ||
|
||
.. code-block:: yaml | ||
|
||
# src/Acme/BlogBundle/Resources/config/validation.yml | ||
Acme\BlogBundle\Entity\Author: | ||
properties: | ||
bioUrl: | ||
- Url: ~ | ||
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the |
||
message: The url "{{ value }}" is not a valid url. | ||
protocols: [http, https] | ||
checkDNS: true | ||
|
||
.. code-block:: xml | ||
|
||
<!-- src/Acme/BlogBundle/Resources/config/validation.xml --> | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...and here :)