Browse Source

Add docs for _host option.

Mark Story 9 years ago
parent
commit
91b787e3dd
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/Routing/Route/Route.php

+ 3 - 0
src/Routing/Route/Route.php

@@ -92,6 +92,9 @@ class Route
      *
      * - `_ext` - Defines the extensions used for this route.
      * - `pass` - Copies the listed parameters into params['pass'].
+     * - `_host` - Define the host name pattern if you want this route to only match
+     *   specific host names. You can use `.*` and to create wildcard subdomains/hosts
+     *   e.g. `*.example.com` matches all subdomains on `example.com`.
      *
      * @param string $template Template string with parameter placeholders
      * @param array|string $defaults Defaults for the route.