mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 22:43:19 +00:00
Fix CS
This commit is contained in:
@@ -20,54 +20,49 @@ use Alchemy\Phrasea\Core;
|
||||
*/
|
||||
class bootstrap
|
||||
{
|
||||
protected static $core;
|
||||
|
||||
protected static $core;
|
||||
|
||||
public static function set_php_configuration()
|
||||
{
|
||||
return Core::initPHPConf();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param $env
|
||||
* @return Alchemy\Phrasea\Core
|
||||
*/
|
||||
public static function execute($env = null)
|
||||
{
|
||||
if (static::$core)
|
||||
public static function set_php_configuration()
|
||||
{
|
||||
return static::$core;
|
||||
return Core::initPHPConf();
|
||||
}
|
||||
|
||||
static::$core = new Core($env);
|
||||
|
||||
if (static::$core->getConfiguration()->isInstalled())
|
||||
/**
|
||||
*
|
||||
* @param $env
|
||||
* @return Alchemy\Phrasea\Core
|
||||
*/
|
||||
public static function execute($env = null)
|
||||
{
|
||||
static::$core->enableEvents();
|
||||
if (static::$core) {
|
||||
return static::$core;
|
||||
}
|
||||
|
||||
static::$core = new Core($env);
|
||||
|
||||
if (static::$core->getConfiguration()->isInstalled()) {
|
||||
static::$core->enableEvents();
|
||||
}
|
||||
|
||||
if (\setup::is_installed()) {
|
||||
$gatekeeper = \gatekeeper::getInstance(static::$core);
|
||||
$gatekeeper->check_directory();
|
||||
}
|
||||
|
||||
return static::$core;
|
||||
}
|
||||
|
||||
if (\setup::is_installed())
|
||||
/**
|
||||
*
|
||||
* @return Alchemy\Phrasea\Core
|
||||
*/
|
||||
public static function getCore()
|
||||
{
|
||||
$gatekeeper = \gatekeeper::getInstance(static::$core);
|
||||
$gatekeeper->check_directory();
|
||||
return static::$core;
|
||||
}
|
||||
|
||||
return static::$core;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return Alchemy\Phrasea\Core
|
||||
*/
|
||||
public static function getCore()
|
||||
{
|
||||
return static::$core;
|
||||
}
|
||||
|
||||
public static function register_autoloads()
|
||||
{
|
||||
return Core::initAutoloads();
|
||||
}
|
||||
|
||||
public static function register_autoloads()
|
||||
{
|
||||
return Core::initAutoloads();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user