You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

UrlResolver.php 240B

3 vuotta sitten
12345678910111213141516171819
  1. <?php
  2. /**
  3. * @author La clic ! <contact@laclic.fr>
  4. */
  5. namespace Lc\SovBundle\Resolver;
  6. class UrlResolver
  7. {
  8. public function isServerLocalhost()
  9. {
  10. return in_array($_SERVER['REMOTE_ADDR'], ['127.0.0.1', '::1']);
  11. }
  12. }