Skip to content
Permalink
Browse files
Added bootstrap cache to prod app, removed unneeded requirements
  • Loading branch information
manuelkiessling committed Dec 8, 2015
1 parent a97da73 commit 90c9190
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
@@ -1,7 +1,5 @@
<?php

require_once __DIR__.'/AppKernel.php';

use Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache;

class AppCache extends HttpCache
@@ -4,7 +4,7 @@

$loader = require __DIR__.'/../app/autoload.php';

require_once __DIR__.'/../app/AppKernel.php';
include_once __DIR__.'/../var/bootstrap.php.cache';

$kernel = new AppKernel('prod', false);
$kernel->loadClassCache();
@@ -13,8 +13,6 @@
$loader = require __DIR__.'/../app/autoload.php';
Debug::enable();

require_once __DIR__.'/../app/AppKernel.php';

$kernel = new AppKernel('dev', true);
$kernel->loadClassCache();
$request = Request::createFromGlobals();

0 comments on commit 90c9190

Please sign in to comment.