Skip to content

Commit 5cf6a73

Browse files
author
Dorian Villet
committed
[HttpFoundation] Move comments from one method to the other [ci skip].
1 parent e5f2083 commit 5cf6a73

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

Request.php

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -664,19 +664,9 @@ public function setSession(SessionInterface $session)
664664
/**
665665
* Returns the client IP addresses.
666666
*
667-
* This method can read the client IP address from the "X-Forwarded-For" header
668-
* when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-For"
669-
* header value is a comma+space separated list of IP addresses, the left-most
670-
* being the original client, and each successive proxy that passed the request
671-
* adding the IP address where it received the request from.
672-
*
673-
* If your reverse proxy uses a different header name than "X-Forwarded-For",
674-
* ("Client-Ip" for instance), configure it via "setTrustedHeaderName()" with
675-
* the "client-ip" key.
676-
*
677667
* @return array The client IP addresses
678668
*
679-
* @see http://en.wikipedia.org/wiki/X-Forwarded-For
669+
* @see getClientIp()
680670
*/
681671
public function getClientIps()
682672
{
@@ -702,9 +692,20 @@ public function getClientIps()
702692
/**
703693
* Returns the client IP address.
704694
*
695+
* This method can read the client IP address from the "X-Forwarded-For" header
696+
* when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-For"
697+
* header value is a comma+space separated list of IP addresses, the left-most
698+
* being the original client, and each successive proxy that passed the request
699+
* adding the IP address where it received the request from.
700+
*
701+
* If your reverse proxy uses a different header name than "X-Forwarded-For",
702+
* ("Client-Ip" for instance), configure it via "setTrustedHeaderName()" with
703+
* the "client-ip" key.
704+
*
705705
* @return string The client IP address
706706
*
707707
* @see getClientIps()
708+
* @see http://en.wikipedia.org/wiki/X-Forwarded-For
708709
*
709710
* @api
710711
*/

0 commit comments

Comments
 (0)