*/ namespace Lc\SovBundle\Resolver; class UrlResolver { public function isServerLocalhost() { return in_array($_SERVER['REMOTE_ADDR'], ['127.0.0.1', '::1']); } }