/** * @static * @return RokCommon_Service_Container */ public static function &getContainer() { if (!isset(self::$containerInstance)) { self::$containerInstance = new self(); $loader = new RokCommon_Service_Container_Loader_File_Xml(self::$containerInstance); // get and load the platform specific base container file $platform = RokCommon_PlatformFactory::getCurrent(); foreach ($platform->getLoaderChecks() as $platform_check) { $platform_file = ROKCOMMON_LIB_PATH . '/config/' . $platform_check . '.xml'; if (file_exists($platform_file)) { $loader->load($platform_file); /** @var $platforminfo RokCommon_IPlatformInfo */ $platforminfo = self::$containerInstance->platforminfo; $platforminfo->setPlatformParameters(self::$containerInstance); break; } } } return self::$containerInstance; }