From abe86d2608640d0b0e0e8891b1829d5afeb40366 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Tue, 25 May 2010 18:13:53 +0200 Subject: [PATCH] [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 --- src/Symfony/Foundation/Kernel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Foundation/Kernel.php b/src/Symfony/Foundation/Kernel.php index 5f158ea0aa0c..9517cba9d4bc 100644 --- a/src/Symfony/Foundation/Kernel.php +++ b/src/Symfony/Foundation/Kernel.php @@ -254,7 +254,7 @@ public function getLogDir() 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;