diff --git a/docs/components/2.0/domain.md b/docs/components/2.0/domain.md index 9f7447f5..0d5a99d7 100644 --- a/docs/components/2.0/domain.md +++ b/docs/components/2.0/domain.md @@ -6,7 +6,11 @@ title: The Domain component The Domain Host ======= -The library provides a `Domain` class to ease domain host creation and manipulation. This object exposes: +The library provides a `Domain` class to ease domain host creation and manipulation. + +The class validates domain names according to [RFC952](https://tools.ietf.org/html/rfc952) and [RFC1123](https://tools.ietf.org/html/rfc1123#page-13) + +In addition it exposes: - the [package common API](/components/2.0/api/), - the [Host common API](/components/2.0/host/), @@ -25,6 +29,7 @@ public Domain::__construct($host): void ~~~

submitted string is normalized to be RFC3986 compliant.

+

The $host can not be null or the empty string as they represents an invalid domain name.

## The Domain Host API