Skip to content

Commit

Permalink
Use proper autoloading for the kernel rather than file inclusion
Browse files Browse the repository at this point in the history
This allows to register the autoloading for AppCache too, making the
diff smaller when wanting to use it.
  • Loading branch information
stof committed Dec 1, 2015
1 parent 6525f7c commit 2c45777
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions web/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
$apcLoader->register(true);
*/

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

$kernel = new AppKernel('prod', false);
$kernel->loadClassCache();
//$kernel = new AppCache($kernel);
Expand Down

0 comments on commit 2c45777

Please sign in to comment.