protected function read()
{
$filename = $this->filename;
if (!$this->isFileWritable() && file_exists($this->getCacheFilename())) {
$filename = $this->getCacheFilename();
}
$ret = parse_ini_file($filename, true);
if (false === $ret || array() === $ret) {
throw new \InvalidArgumentException(sprintf('The %s file is not valid.', $filename));
}
if (isset($ret['parameters']) && is_array($ret['parameters'])) {
return $ret['parameters'];
} else {
return array();
}
}