Class cache loading disabled in app_dev.php.

This commit is contained in:
Alexey Skobkin 2016-03-23 22:32:53 +03:00
parent 2aaa620606
commit 96881be50b

View file

@ -17,13 +17,14 @@ if (isset($_SERVER['HTTP_CLIENT_IP'])
exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.'); exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
} }
$loader = require_once __DIR__.'/../app/bootstrap.php.cache'; //$loader = require_once __DIR__.'/../app/bootstrap.php.cache';
$loader = require_once __DIR__.'/../app/autoload.php';
Debug::enable(); Debug::enable();
require_once __DIR__.'/../app/AppKernel.php'; require_once __DIR__.'/../app/AppKernel.php';
$kernel = new AppKernel('dev', true); $kernel = new AppKernel('dev', true);
$kernel->loadClassCache(); //$kernel->loadClassCache();
$request = Request::createFromGlobals(); $request = Request::createFromGlobals();
$response = $kernel->handle($request); $response = $kernel->handle($request);
$response->send(); $response->send();