mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-11 03:53:13 +00:00
add environnement to bootstrap::execute
This commit is contained in:
@@ -32,14 +32,14 @@ class bootstrap
|
|||||||
*
|
*
|
||||||
* @return Alchemy\Phrasea\Core
|
* @return Alchemy\Phrasea\Core
|
||||||
*/
|
*/
|
||||||
public static function execute()
|
public static function execute($env = 'main')
|
||||||
{
|
{
|
||||||
if(static::$core)
|
if(static::$core)
|
||||||
{
|
{
|
||||||
return static::$core;
|
return static::$core;
|
||||||
}
|
}
|
||||||
|
|
||||||
static::$core = new Alchemy\Phrasea\Core();
|
static::$core = new Alchemy\Phrasea\Core($env);
|
||||||
|
|
||||||
return static::$core;
|
return static::$core;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user