private static function _buildServiceContainer() { /** * First, record the root path. */ if (!defined('TUBEPRESS_ROOT')) { define('TUBEPRESS_ROOT', self::_calculateTubePressRoot()); } if (!defined('TUBEPRESS_VERSION')) { /** * This is set to the actual version during packaging. */ define('TUBEPRESS_VERSION', '99.99.99'); } if (!isset(self::$_PRIMARY_BOOTSTRAPPER)) { /** * Finally, load the primary bootstrapper and use it to obtain the service container. */ if (!class_exists('tubepress_internal_boot_PrimaryBootstrapper', false)) { require TUBEPRESS_ROOT . '/src/php/classes/internal/tubepress/internal/boot/PrimaryBootstrapper.php'; } self::$_PRIMARY_BOOTSTRAPPER = new tubepress_internal_boot_PrimaryBootstrapper(); } self::$SERVICE_CONTAINER = self::$_PRIMARY_BOOTSTRAPPER->getServiceContainer(); }