equal
deleted
inserted
replaced
|
1 <?php |
|
2 |
|
3 // this check prevents access to debug front controllers that are deployed by accident to production servers. |
|
4 // feel free to remove this, extend it, or make something more sophisticated. |
|
5 if (!in_array(@$_SERVER['REMOTE_ADDR'], array( |
|
6 '127.0.0.1', |
|
7 '::1', |
|
8 ))) { |
|
9 header('HTTP/1.0 403 Forbidden'); |
|
10 exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.'); |
|
11 } |
|
12 |
|
13 require_once __DIR__.'/../app/bootstrap.php.cache'; |
|
14 require_once __DIR__.'/../app/AppKernel.php'; |
|
15 |
|
16 use Symfony\Component\HttpFoundation\Request; |
|
17 |
|
18 $kernel = new AppKernel('dev', true); |
|
19 $kernel->loadClassCache(); |
|
20 $kernel->handle(Request::createFromGlobals())->send(); |