Exemplo n.º 1
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;
 }
Exemplo n.º 2
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;
 }
Exemplo n.º 3
0
 /**
  * Returns a resource bundle reader for .php resource bundle files.
  *
  * @return ResourceBundle\Reader\StructuredBundleReaderInterface The resource reader.
  */
 private static function getBundleReader()
 {
     if (null === self::$bundleReader) {
         self::$bundleReader = new StructuredBundleReader(new BufferedBundleReader(IcuData::getBundleReader(), self::BUFFER_SIZE));
     }
     return self::$bundleReader;
 }