diff --git a/web/app.php b/web/app.php index d973debb9..9480cdbcb 100644 --- a/web/app.php +++ b/web/app.php @@ -11,7 +11,9 @@ * @var Composer\Autoload\ClassLoader */ $loader = require __DIR__.'/../app/autoload.php'; -include_once __DIR__.'/../var/bootstrap.php.cache'; +if (PHP_VERSION_ID < 70000) { + include_once __DIR__.'/../var/bootstrap.php.cache'; +} // If your web server provides APC support for PHP applications, uncomment these // lines to use APC for class autoloading. This can improve application performance @@ -27,7 +29,9 @@ // $apcLoader->register(true); $kernel = new AppKernel('prod', false); -$kernel->loadClassCache(); +if (PHP_VERSION_ID < 70000) { + $kernel->loadClassCache(); +} // When using the HTTP Cache to improve application performance, the application // kernel is wrapped by the AppCache class to activate the built-in reverse proxy. diff --git a/web/app_dev.php b/web/app_dev.php index 97766dfb2..959af7e70 100644 --- a/web/app_dev.php +++ b/web/app_dev.php @@ -29,7 +29,9 @@ Debug::enable(); $kernel = new AppKernel('dev', true); -$kernel->loadClassCache(); +if (PHP_VERSION_ID < 70000) { + $kernel->loadClassCache(); +} $request = Request::createFromGlobals(); $response = $kernel->handle($request); $response->send();