89 $this->reader = $reader;
91 $this->cacheId = $cacheId;
103 $data = $this->cache->load($this->cacheId);
104 if (
false ===
$data) {
105 $data = $this->reader->read();
108 $data = $this->serializer->unserialize(
$data);
122 $this->_data = array_replace_recursive($this->_data,
$config);
132 public function get(
$path =
null, $default =
null)
134 if (
$path ===
null) {
137 $keys = explode(
'/',
$path);
139 foreach ($keys as $key) {
140 if (is_array(
$data) && array_key_exists($key,
$data)) {
156 $this->cache->remove($this->cacheId);
__construct(ReaderInterface $reader, CacheInterface $cache, $cacheId, SerializerInterface $serializer=null)