public static function getServiceProvider() {
		if (is_callable('_elgg_services')) {
			return _elgg_services();
		}

		global $CONFIG;
		if (!isset($CONFIG)) {
			$path = self::getRootPath() . '/engine/settings.php';
			if (!is_file($path)) {
				$path = self::getRootPath() . '/elgg-config/settings.php';
			}
			require_once $path;
		}

		return new \Elgg\Di\ServiceProvider(new \Elgg\Config($CONFIG));
	}
public static function getServiceProvider() {
		if (is_callable('_elgg_services')) {
			return _elgg_services();
		}

		global $CONFIG;
		if (!isset($CONFIG)) {
			$path = self::getRootPath() . '/engine/settings.php';
			if (!is_file($path)) {
				$path = self::getRootPath() . '/elgg-config/settings.php';
			}
			require_once $path;
		}

		return new \Elgg\Di\ServiceProvider(new \Elgg\Config($CONFIG));
	}
public static function getServiceProvider ( ) { if ( is_callable ( '_elgg_services' ) ) { return _elgg_services ( ) ; } global $ CONFIG ; if ( ! isset ( $ CONFIG ) ) { $ path = self :: getRootPath ( ) . '/engine/settings.php' ; if ( ! is_file ( $ path ) ) { $ path = self :: getRootPath ( ) . '/elgg-config/settings.php' ; } require_once $ path ; } return new \ Elgg \ Di \ ServiceProvider ( new \ Elgg \ Config ( $ CONFIG ) ) ; }
Returns Elgg ServiceProvider instance
@return ServiceProvider
Returns Elgg ServiceProvider instance