src/cache/ConfigurationCache.php
public static function addToCache($identifier, $accessor, array $data) {
    if (self::isCached($identifier, $accessor)) {
      throw new \Exception("Data for identifier '$identifier' and accessor '$accessor' is already present in
      this cache");
    }

    if (!in_array($identifier, self::$cache)) {
      self::$cache[$identifier] = [];
    }

    self::$cache[$identifier][$accessor] = $data;
  }
public static function addToCache($identifier, $accessor, array $data) {
    if (self::isCached($identifier, $accessor)) {
      throw new \Exception("Data for identifier '$identifier' and accessor '$accessor' is already present in
      this cache");
    }

    if (!in_array($identifier, self::$cache)) {
      self::$cache[$identifier] = [];
    }

    self::$cache[$identifier][$accessor] = $data;
  }
public static function addToCache ( $ identifier , $ accessor , array $ data ) { if ( self :: isCached ( $ identifier , $ accessor ) ) { throw new \ Exception ( "Data for identifier '$identifier' and accessor '$accessor' is already present in
      this cache" ) ; } if ( ! in_array ( $ identifier , self :: $ cache ) ) { self :: $ cache [ $ identifier ] = [ ] ; } self :: $ cache [ $ identifier ] [ $ accessor ] = $ data ; }
Add new data to the cache.

@param $identifier string identifier of the configuration loader
@param $accessor string accessor of the configuration loader
@param $data array data for this accessor/identifier pair

@throws \Exception if some data is already stored for the given identifier/accessor pair.
Add new data to the cache .