flush docs
[mdref/mdref-http] / http / Url / __construct.md
index d602108657af8401806ff93ef05c4f8cce23fe70..cb1f7710bfd5c5f9e3d8e64e3035a850701e313f 100644 (file)
@@ -1,14 +1,19 @@
-# void http\Url::__construct([mixed $old_url = NULL[, mixed $new_url = NULL[, int $flags = http\Url::FROM_ENV]]])
+# void http\Url::__construct([mixed $old_url = NULL[, mixed $new_url = NULL[, int $flags = 0]]])
 
 Create an instance of an http\Url.
 
+> ***NOTE:***
+> Prior to v3.0.0, the default for the $flags parameter was http\Url::FROM_ENV.
+
+See also http\Env\Url.
+
 ## Params:
 
 * Optional mixed $old_url = NULL  
   Initial URL parts. Either an array, object, http\Url instance or string to parse.
 * Optional mixed $new_url = NULL  
   Overriding URL parts. Either an array, object, http\Url instance or string to parse.
-* Optional int $flags = http\Url::FROM_ENV  
+* Optional int $flags = 0
   The modus operandi of constructing the url. See http\Url constants.
 
 ## Throws:
@@ -16,3 +21,7 @@ Create an instance of an http\Url.
 * http\Exception\InvalidArgumentException
 * http\Exception\BadUrlException
 
+## Changelog:
+
+0. v3.0.0
+       * Changed the default of the $flags parameter from http\Url::FROM_ENV to 0.