Skip to content

Commit 7e13a01

Browse files
committed
update components method name
1 parent ca9b516 commit 7e13a01

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

docs/components/7.0/modifiers.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,20 @@ echo get_class($newUri); //display \Zend\Diactoros\Uri
498498
echo $newUri; //display 'http://[fe80::1234]/path/to/the/sky.php'
499499
~~~
500500

501+
### Modifier::normalizeHostIp
502+
503+
Returns the host as formatted following WHATWG host formatting
504+
505+
<p class="message-notice">available since version <code>7.6.0</code></p>
506+
507+
~~~php
508+
$uri = "https://0:0@0:0";
509+
echo Modifier::from($uri)->normalizeHostIp()->getUriString();
510+
//display "https://0:[email protected]:0"
511+
~~~
512+
513+
In case of IPv4 and/or IPv6 some extra normalization are applied.
514+
501515
### Modifier::addRootLabel
502516

503517
Adds the root label if not present
@@ -602,20 +616,6 @@ echo Modifier::from($uri)->sliceLabels(1, 1)->getUriString();
602616

603617
<p class="message-info">This modifier supports negative offset</p>
604618

605-
### Modifier::normalizeHostIp
606-
607-
Returns the host as formatted following WHATWG host formatting
608-
609-
<p class="message-notice">available since version <code>7.6.0</code></p>
610-
611-
~~~php
612-
$uri = "https://0:0@0:0";
613-
echo Modifier::from($uri)->normalizeHostIp()->getUriString();
614-
//display "https://0:[email protected]:0"
615-
~~~
616-
617-
In case of IPv4 and/or IPv6 some extra normalization are applied.
618-
619619
## Path modifiers
620620

621621
<p class="message-notice">Because each modification is done after parsing and building,

0 commit comments

Comments
 (0)