cancel
Showing results for 
Search instead for 
Did you mean: 

Bless \Magento\Framework\HTTP\PhpEnvironment\RemoteAddress with @api annotation

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.
0 Kudos

Bless \Magento\Framework\HTTP\PhpEnvironment\RemoteAddress with @api annotation

In some custom modules the IP address of the current visitor is required (e.g. for GeoIp lookups or access control).

The class \Magento\Framework\HTTP\PhpEnvironment\RemoteAddress provides this feature, however it is not marked as stable.

In order to be able to use the class within third party modules, it would be nice to have a method that is blessed with the  @api annotation.