This commit is contained in:
Romain Neutron
2012-04-26 00:55:53 +02:00
parent edbfff226e
commit ade22295ad
631 changed files with 92375 additions and 101763 deletions

View File

@@ -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();
}
}