From da5022ccce4e1f6085bc7dc19d8bf3882e3504de Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Sun, 21 Apr 2013 10:38:16 +0200 Subject: [PATCH] [HttpKernel] added some comments to explain the rationale behind the previous merge change --- src/Symfony/Component/HttpKernel/Kernel.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Component/HttpKernel/Kernel.php b/src/Symfony/Component/HttpKernel/Kernel.php index 9e88498e11..48d2a8ce89 100644 --- a/src/Symfony/Component/HttpKernel/Kernel.php +++ b/src/Symfony/Component/HttpKernel/Kernel.php @@ -120,7 +120,7 @@ abstract class Kernel implements KernelInterface, TerminableInterface } if ($this->loadClassCache) { - call_user_func_array(array($this, 'doLoadClassCache', $this->loadClassCache); + $this->doLoadClassCache($this->loadClassCache[0], $this->loadClassCache[1]); } // init bundles @@ -389,6 +389,12 @@ abstract class Kernel implements KernelInterface, TerminableInterface /** * Loads the PHP class cache. * + * This methods only registers the fact that you want to load the cache classes. + * The cache will actually only be loaded when the Kernel is booted. + * + * That optimization is mainly useful when using the HttpCache class in which + * case the class cache is not loaded if the Response is in the cache. + * * @param string $name The cache name prefix * @param string $extension File extension of the resulting file */