Exemple #1
0
 public function testInitalizationAndSingleton()
 {
     $instanceB = Wikia\UI\Factory::getInstance();
     $this->assertEquals($this->instance, $instanceB);
 }
 /**
  * @desc Constructor creates instance of Wikia\UI\Factory and loads components names from FS
  */
 public function __construct()
 {
     $this->uiFactory = Wikia\UI\Factory::getInstance();
     $this->userLangCode = F::app()->wg->Lang->getCode();
     static::$componentsNames = WikiaDataAccess::cache(wfSharedMemcKey(__CLASS__, 'components_names_list', self::MEMCACHE_VERSION_KEY, $this->userLangCode), \Wikia\UI\Factory::MEMCACHE_EXPIRATION, ['StyleguideComponents', 'loadComponentsFromFileSystem']);
 }