public function __construct(ServiceProvider $services)
{
$this->services = $services;
/**
* The time with microseconds when the Elgg engine was started.
*
* @global float
*/
if (!isset($GLOBALS['START_MICROTIME'])) {
$GLOBALS['START_MICROTIME'] = microtime(true);
}
$services->timer->begin([]);
/**
* This was introduced in 2.0 in order to remove all internal non-API state from $CONFIG. This will
* be a breaking change, but frees us to refactor in 2.x without fear of plugins depending on
* $CONFIG.
*
* @access private
*/
if (!isset($GLOBALS['_ELGG'])) {
$GLOBALS['_ELGG'] = new \stdClass();
}
$this->engine_dir = __DIR__ . '/../..';
}