Beispiel #1
0
 /**
  * Resets the internal state.
  */
 private static function reset()
 {
     self::$currencyBundle = null;
     self::$languageBundle = null;
     self::$localeBundle = null;
     self::$regionBundle = null;
     self::$icuVersion = false;
     self::$icuDataVersion = false;
     self::$entryReader = null;
 }
Beispiel #2
0
 /**
  * Returns the cached bundle entry reader.
  *
  * @return BundleEntryReaderInterface The bundle entry reader
  */
 private static function getEntryReader()
 {
     if (null === self::$entryReader) {
         self::$entryReader = new BundleEntryReader(new BufferedBundleReader(new JsonBundleReader(), self::BUFFER_SIZE));
     }
     return self::$entryReader;
 }