Permalink
Browse files

Added bootstrap cache to prod app, removed unneeded requirements

  • Loading branch information...
1 parent a97da73 commit 90c919001652d817e0e91839ff64c2e618c2bf0f @manuelkiessling manuelkiessling committed Dec 8, 2015
Showing with 1 addition and 5 deletions.
  1. +0 −2 app/AppCache.php
  2. +1 −1 web/app.php
  3. +0 −2 web/app_dev.php
View
@@ -1,7 +1,5 @@
<?php
-require_once __DIR__.'/AppKernel.php';
-
use Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache;
class AppCache extends HttpCache
View
@@ -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();
View
@@ -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.