@@ -75,16 +75,18 @@ If you're using the Standard Distribution, this code should already be available
7575as comments in this file::
7676
7777 // app.php
78- // ...
79-
80- $loader = require_once __DIR__.'/../app/bootstrap.php.cache';
8178
82- // Use APC for autoloading to improve performance
83- // Change 'sf2' by the prefix you want in order
84- // to prevent key conflict with another application
79+ // ...
80+ $loader = require __DIR__.'/../app/autoload.php';
81+ include_once __DIR__.'/../var/bootstrap.php.cache';
82+ // Enable APC for autoloading to improve performance.
83+ // You should change the ApcClassLoader first argument to a unique prefix
84+ // in order to prevent cache key conflicts with other applications
85+ // also using APC.
8586 /*
86- $loader = new ApcClassLoader('sf2', $loader);
87- $loader->register(true);
87+ $apcLoader = new Symfony\Component\ClassLoader\ApcClassLoader(sha1(__FILE__), $loader);
88+ $loader->unregister();
89+ $apcLoader->register(true);
8890 */
8991
9092 // ...
@@ -119,7 +121,7 @@ If you're using the Symfony Standard Edition, then you're probably already
119121using the bootstrap file. To be sure, open your front controller (usually
120122``app.php ``) and check to make sure that the following line exists::
121123
122- require_once __DIR__.'/../app /bootstrap.php.cache';
124+ include_once __DIR__.'/../var /bootstrap.php.cache';
123125
124126Note that there are two disadvantages when using a bootstrap file:
125127
0 commit comments