Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Commit 2a46c66

Browse files
committed
feature #897 Use proper autoloading for the kernel rather than file inclusion (stof)
This PR was merged into the 2.8 branch. Discussion ---------- 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. Commits ------- 2c45777 Use proper autoloading for the kernel rather than file inclusion
2 parents 6525f7c + 2c45777 commit 2a46c66

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"description": "The \"Symfony Standard Edition\" distribution",
66
"autoload": {
77
"psr-4": { "": "src/" },
8-
"files": [ "app/AppKernel.php" ]
8+
"classmap": [ "app/AppKernel.php", "app/AppCache.php" ]
99
},
1010
"require": {
1111
"php": ">=5.3.9",

web/app.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
$apcLoader->register(true);
1919
*/
2020

21-
//require_once __DIR__.'/../app/AppCache.php';
22-
2321
$kernel = new AppKernel('prod', false);
2422
$kernel->loadClassCache();
2523
//$kernel = new AppCache($kernel);

0 commit comments

Comments
 (0)