File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 11
11
* @var Composer\Autoload\ClassLoader
12
12
*/
13
13
$ loader = require __DIR__ .'/../app/autoload.php ' ;
14
- include_once __DIR__ .'/../var/bootstrap.php.cache ' ;
14
+ if (PHP_VERSION_ID < 70000 ) {
15
+ include_once __DIR__ .'/../var/bootstrap.php.cache ' ;
16
+ }
15
17
16
18
// If your web server provides APC support for PHP applications, uncomment these
17
19
// lines to use APC for class autoloading. This can improve application performance
27
29
// $apcLoader->register(true);
28
30
29
31
$ kernel = new AppKernel ('prod ' , false );
30
- $ kernel ->loadClassCache ();
32
+ if (PHP_VERSION_ID < 70000 ) {
33
+ $ kernel ->loadClassCache ();
34
+ }
31
35
32
36
// When using the HTTP Cache to improve application performance, the application
33
37
// kernel is wrapped by the AppCache class to activate the built-in reverse proxy.
Original file line number Diff line number Diff line change 29
29
Debug::enable ();
30
30
31
31
$ kernel = new AppKernel ('dev ' , true );
32
- $ kernel ->loadClassCache ();
32
+ if (PHP_VERSION_ID < 70000 ) {
33
+ $ kernel ->loadClassCache ();
34
+ }
33
35
$ request = Request::createFromGlobals ();
34
36
$ response = $ kernel ->handle ($ request );
35
37
$ response ->send ();
You can’t perform that action at this time.
0 commit comments