cancel
Showing results for 
Search instead for 
Did you mean: 

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

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.