[HttpKernel] added some comments to explain the rationale behind the previous merge change
This commit is contained in:
parent
5ad5a5ca48
commit
da5022ccce
@ -120,7 +120,7 @@ abstract class Kernel implements KernelInterface, TerminableInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($this->loadClassCache) {
|
if ($this->loadClassCache) {
|
||||||
call_user_func_array(array($this, 'doLoadClassCache', $this->loadClassCache);
|
$this->doLoadClassCache($this->loadClassCache[0], $this->loadClassCache[1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// init bundles
|
// init bundles
|
||||||
@ -389,6 +389,12 @@ abstract class Kernel implements KernelInterface, TerminableInterface
|
|||||||
/**
|
/**
|
||||||
* Loads the PHP class cache.
|
* 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 $name The cache name prefix
|
||||||
* @param string $extension File extension of the resulting file
|
* @param string $extension File extension of the resulting file
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user