From 2c4577772fd00612261bebbb22d3534efe8cca77 Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Tue, 1 Dec 2015 09:46:03 +0100 Subject: [PATCH] Use proper autoloading for the kernel rather than file inclusion This allows to register the autoloading for AppCache too, making the diff smaller when wanting to use it. --- composer.json | 2 +- web/app.php | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/composer.json b/composer.json index c5cd89f88d..ec7ec72346 100644 --- a/composer.json +++ b/composer.json @@ -5,7 +5,7 @@ "description": "The \"Symfony Standard Edition\" distribution", "autoload": { "psr-4": { "": "src/" }, - "files": [ "app/AppKernel.php" ] + "classmap": [ "app/AppKernel.php", "app/AppCache.php" ] }, "require": { "php": ">=5.3.9", diff --git a/web/app.php b/web/app.php index a88f0b5a04..cc2fefb556 100644 --- a/web/app.php +++ b/web/app.php @@ -18,8 +18,6 @@ $apcLoader->register(true); */ -//require_once __DIR__.'/../app/AppCache.php'; - $kernel = new AppKernel('prod', false); $kernel->loadClassCache(); //$kernel = new AppCache($kernel);