|
Size: | 8869 |
Storage flags: | no_autoload,compress/gzip (32%) |
This filter can set a scheme on an URI, if a scheme is not present. If a scheme is present, that scheme will not be affected, even if a different scheme is enforced.
The following options are supported for Zend\Filter\UriNormalize:
See the following example for the default behaviour of this filter:
1 2 3 4 5 | $filter = new Zend\Filter\UriNormalize(array(
'enforcedScheme' => 'https'
));
echo $filter->filter('www.example.com');
|
As the result the string https://www.example.com will be output.
The source code of this file is hosted on GitHub. Everyone can update and fix errors in this document with few clicks - no downloads needed.