Skip to content

Commit

Permalink
updated custom ip selector description in README.md
Browse files Browse the repository at this point in the history
Co-authored-by: Uman Shahzad <[email protected]>
  • Loading branch information
Soban Mahmood and UmanShahzad authored Jul 18, 2022
1 parent 58cde57 commit 29f5990
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@ This selector can be set by setting the `ip_selector` config value in `\config\s

#### Using a custom IP selector

User may want to use custom techniques for getting an ip address out of the request according to their requirements. For this purpose custom ip selector can be created. This is done by implementing [IPHandlerInterface](https://github.com/ipinfo/php/blob/master/src/iphandler/IPHandlerInterface.php) and setting the the `ip_selector` config value in `\config\services.php`.
In case a custom IP selector is required, you may implement the [IPHandlerInterface](https://github.com/ipinfo/php/blob/master/src/iphandler/IPHandlerInterface.php) interface and set the `ip_selector` config value in `\config\services.php`.

For example:

```php
'ipinfo' => [
Expand Down

0 comments on commit 29f5990

Please sign in to comment.