add environnement to bootstrap::execute

This commit is contained in:
Nicolas Le Goff
2011-12-27 12:53:56 +01:00
parent 5950e58db0
commit c191f91f1c

View File

@@ -32,14 +32,14 @@ class bootstrap
*
* @return Alchemy\Phrasea\Core
*/
public static function execute()
public static function execute($env = 'main')
{
if(static::$core)
{
return static::$core;
}
static::$core = new Alchemy\Phrasea\Core();
static::$core = new Alchemy\Phrasea\Core($env);
return static::$core;
}