diff options
Diffstat (limited to 'web/app_dev.php')
-rw-r--r-- | web/app_dev.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/web/app_dev.php b/web/app_dev.php index e0279c2a..635bf7ac 100644 --- a/web/app_dev.php +++ b/web/app_dev.php | |||
@@ -4,7 +4,8 @@ use Symfony\Component\HttpFoundation\Request; | |||
4 | use Symfony\Component\Debug\Debug; | 4 | use Symfony\Component\Debug\Debug; |
5 | 5 | ||
6 | // If you don't want to setup permissions the proper way, just uncomment the following PHP line | 6 | // If you don't want to setup permissions the proper way, just uncomment the following PHP line |
7 | // read http://symfony.com/doc/current/book/installation.html#configuration-and-setup for more information | 7 | // read http://symfony.com/doc/current/book/installation.html#checking-symfony-application-configuration-and-setup |
8 | // for more information | ||
8 | //umask(0000); | 9 | //umask(0000); |
9 | 10 | ||
10 | // This check prevents access to debug front controllers that are deployed by accident to production servers. | 11 | // This check prevents access to debug front controllers that are deployed by accident to production servers. |
@@ -17,11 +18,12 @@ if (isset($_SERVER['HTTP_CLIENT_IP']) | |||
17 | exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.'); | 18 | exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.'); |
18 | } | 19 | } |
19 | 20 | ||
20 | $loader = require_once __DIR__.'/../app/bootstrap.php.cache'; | 21 | /** |
22 | * @var Composer\Autoload\ClassLoader $loader | ||
23 | */ | ||
24 | $loader = require __DIR__.'/../app/autoload.php'; | ||
21 | Debug::enable(); | 25 | Debug::enable(); |
22 | 26 | ||
23 | require_once __DIR__.'/../app/AppKernel.php'; | ||
24 | |||
25 | $kernel = new AppKernel('dev', true); | 27 | $kernel = new AppKernel('dev', true); |
26 | $kernel->loadClassCache(); | 28 | $kernel->loadClassCache(); |
27 | $request = Request::createFromGlobals(); | 29 | $request = Request::createFromGlobals(); |