src/config/XmlConfigParser.class.php 1 location
|
@@ 392-395 (lines=4) @@
|
| 389 |
|
// ... and context names |
| 390 |
|
$this->context = $context; |
| 391 |
|
|
| 392 |
|
if (!is_readable($path)) { |
| 393 |
|
$error = 'Configuration file "' . $path . '" does not exist or is unreadable'; |
| 394 |
|
throw new UnreadableException($error); |
| 395 |
|
} |
| 396 |
|
|
| 397 |
|
// store path to the config file |
| 398 |
|
$this->path = $path; |
src/date/TimeZoneDataParser.class.php 1 location
|
@@ 86-89 (lines=4) @@
|
| 83 |
|
*/ |
| 84 |
|
public function parse($config) |
| 85 |
|
{ |
| 86 |
|
if (!is_readable($config)) { |
| 87 |
|
$error = 'Configuration file "' . $config . '" does not exist or is unreadable'; |
| 88 |
|
throw new UnreadableException($error); |
| 89 |
|
} |
| 90 |
|
|
| 91 |
|
return $this->parseFile($config); |
| 92 |
|
} |