Commit Graph

10 Commits

Author SHA1 Message Date
Nicolas Grekas f4ff77cc08 Merge branch '5.0'
* 5.0: (21 commits)
  [DoctrineBridge] [DX] Improve condition for exception text in ManagerRegistry to avoid confusion
  Fix testing with mongodb
  suggest a non-deprecated function replacement
  Minor Travis cosmetic patch
  [Cache] fix checking for igbinary availability
  [HttpKernel] Check if lock can be released
  Fixes a runtime error (Impossible to access an attribute ("value") on a double variable...) when accessing the cache panel (@see #35419)
  bumped Symfony version to 5.0.4
  updated VERSION for 5.0.3
  updated CHANGELOG for 5.0.3
  bumped Symfony version to 4.4.4
  updated VERSION for 4.4.3
  updated CHANGELOG for 4.4.3
  bumped Symfony version to 4.3.11
  updated VERSION for 4.3.10
  updated CHANGELOG for 4.3.10
  bumped Symfony version to 3.4.38
  updated VERSION for 3.4.37
  update CONTRIBUTORS for 3.4.37
  updated CHANGELOG for 3.4.37
  ...
2020-01-23 12:07:40 +01:00
Fabien Potencier 053cea50e0 updated CHANGELOG for 5.0.3 2020-01-21 14:29:49 +01:00
Fabien Potencier 7dae1cad64 feature #31518 [Validator] Added HostnameValidator (karser)
This PR was merged into the 5.1-dev branch.

Discussion
----------

[Validator] Added HostnameValidator

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes <!-- please update src/**/CHANGELOG.md files -->
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | #10088   <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->

This PR adds HostnameValidator support. I encountered this need in my project and was surprised that this issue has been open for years.

Here is short example:
```
App\Entity\Acme:
    properties:
        domain:
            - Hostname: ~
        non_tld_domain:
            - Hostname: { requireTld: false }
```
The option `requireTld` is `true` by default and disallows domains like localhost and etc.

Commits
-------

8a08c2090a Added HostnameValidator
2020-01-10 10:41:53 +01:00
Fabien Potencier 2f14af2ca5 updated CHANGELOG for 5.0.2 2019-12-19 19:34:57 +01:00
Fabien Potencier 3759c02590 updated CHANGELOG for 5.0.1 2019-12-01 15:11:22 +01:00
Fabien Potencier 09220f9fde Update CHANGELOG for 5.0.0 2019-11-21 09:50:28 +01:00
Fabien Potencier 6143defde1 Update CHANGELOG for 5.0.0-RC1 2019-11-17 18:07:42 +01:00
karser 8a08c2090a Added HostnameValidator 2019-11-14 19:31:20 +02:00
Fabien Potencier d7fc027038 updated CHANGELOG for 5.0.0-BETA2 2019-11-13 10:19:24 +01:00
Fabien Potencier af97c3d86a updated CHANGELOG for 5.0.0-BETA1 2019-11-12 18:55:21 +01:00