src/CoreBundle/Controller/Backend/SupportMetaModelsController.php
private function getJsonFile($filename)
    {
        if (!is_readable($filename)) {
            return [];
        }

        $contents = json_decode(file_get_contents($filename), true);

        return $contents ?: [];
    }
private function getJsonFile($filename)
    {
        if (!is_readable($filename)) {
            return [];
        }

        $contents = json_decode(file_get_contents($filename), true);

        return $contents ?: [];
    }
private function getJsonFile ( $ filename ) { if ( ! is_readable ( $ filename ) ) { return [ ] ; } $ contents = json_decode ( file_get_contents ( $ filename ) , true ) ; return $ contents ? : [ ] ; }
Load the passed file and decode it.

@param string $filename The file name.

@return array
Load the passed file and decode it .