[Foundation] added the env and debug information in the project container class name to avoid potential clashes if you manipulate several container in the same PHP script

This commit is contained in:
Fabien Potencier 2010-05-25 18:13:53 +02:00
parent 632ef95e06
commit abe86d2608
1 changed files with 1 additions and 1 deletions

View File

@ -254,7 +254,7 @@ abstract class Kernel implements HttpKernelInterface, \Serializable
protected function initializeContainer()
{
$class = $this->name.'ProjectContainer';
$class = $this->name.ucfirst($this->environment).($this->debug ? 'Debug' : '').'ProjectContainer';
$location = $this->getCacheDir().'/'.$class;
$reload = $this->debug ? $this->needsReload($class, $location) : false;