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

Commit e7b509d

Browse files
committed
merged branch Seldaek/patch-3 (PR #570)
This PR was merged into the master branch. Discussion ---------- Unregister initial loader when using ApcClassLoader I think it's quite bad to have twice the same loader registered because for autoloading classes (or class_exists calls) not handled by the main symfony/composer loader, it'll be called twice. Commits ------- 43b3c14 Unregister initial loader when using ApcClassLoader
2 parents a8c9d2d + 43b3c14 commit e7b509d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

web/app.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
// Change 'sf2' to a unique prefix in order to prevent cache key conflicts
1010
// with other applications also using APC.
1111
/*
12-
$loader = new ApcClassLoader('sf2', $loader);
13-
$loader->register(true);
12+
$apcLoader = new ApcClassLoader('sf2', $loader);
13+
$loader->unregister();
14+
$apcLoader->register(true);
1415
*/
1516

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

0 commit comments

Comments
 (0)