/** * {@inheritDoc} */ public function load($group, $environment = '') { $data = []; if (!$this->loaded) { $this->loaded = true; $data = (array) Reader::readFile($this->cache_file, 'serialized'); } return $data; }
/** * Set config file type * * @param string $fileType * @return $this * @throws InvalidArgumentException if unsupported file type * @access public * @api */ public function setFileType($fileType) { if (!Reader::isSupported($fileType)) { throw new InvalidArgumentException(Message::get(Message::CONFIG_FILE_TYPE_UNKNOWN, $fileType), Message::CONFIG_FILE_TYPE_UNKNOWN); } $this->file_type = $fileType; return $this; }