This website works better with JavaScript.
Home
Explore
Help
Sign In
Laclic
/
SovBundle
Watch
3
Star
0
Fork
0
Code
Issues
1
Pull Requests
0
Releases
2
Wiki
Activity
Browse Source
Creation UrlResolver
feature/ticket
Fab
3 years ago
parent
003f069c6e
commit
3f2f068cd8
1 changed files
with
19 additions
and
0 deletions
Split View
Show Diff Stats
+19
-0
Resolver/UrlResolver.php
+ 19
- 0
Resolver/UrlResolver.php
View File
@@ -0,0 +1,19 @@
<?php
/**
* @author La clic ! <contact@laclic.fr>
*/
namespace Lc\SovBundle\Resolver;
class UrlResolver
{
public function isServerLocalhost()
{
return in_array($_SERVER['REMOTE_ADDR'], ['127.0.0.1', '::1']);
}
}
Write
Preview
Loading…
Cancel
Save