mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 11:33:17 +00:00
add environnement to bootstrap::execute
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user