Zend\Filter\UriNormalize::setEnforcedScheme
Set a URI scheme to enforce on schemeless URIs
This allows forcing input values such as 'www.example.com/foo' into 'http://www.example.com/foo'. This should be used with caution, as a standard-compliant URI parser would regard 'www.example.com' in the above input URI to be the path and not host part of the URI. While this option can assist in solving real-world user mishaps, it may yield unexpected results at times.
Signature
public function setEnforcedScheme(string
$enforcedSchemeĀ )
Parameters
$enforcedScheme
ā string
Returns
- self