Created an EmptyIpLocationResolver which always returns an empty resolution and can be used as a fallback while resolving IP addresses

This commit is contained in:
Alejandro Celaya
2018-11-12 20:58:14 +01:00
parent 1aa78f766a
commit c7339f6cfa
7 changed files with 78 additions and 8 deletions

View File

@@ -8,8 +8,6 @@ use Shlinkio\Shlink\Common\Exception\WrongIpException;
interface IpLocationResolverInterface
{
/**
* @param string $ipAddress
* @return array
* @throws WrongIpException
*/
public function resolveIpLocation(string $ipAddress): array;