protected function RoboFile::readJsonFile in Panopoly 7
Reads and parses a JSON file.
Parameters
string $filename: The filename to read.
Return value
array|null The parsed JSON data from the file, or NULL if the file can't be read.
File
- ./
RoboFile.php, line 175
Class
- RoboFile
- This is project's console commands configuration for Robo task runner.
Code
protected function readJsonFile($filename) {
return json_decode(file_get_contents($filename), TRUE);
}