protected function loadSchema($schema_path)
    {
        $json = false;
        if (file_exists($schema_path)) {
            $contents = file_get_contents($schema_path);
            $json = json_decode($contents);
            if ($json == false) {
                $message = sprintf('Error decoding %s.', $schema_path);
                $this->logger->error($message);
            }
        } else {
            $message = sprintf('Could not load file %s.', $schema_path);
            $this->logger->error($message);
        }

        return $json;
    }
protected function loadSchema($schema_path)
    {
        $json = false;
        if (file_exists($schema_path)) {
            $contents = file_get_contents($schema_path);
            $json = json_decode($contents);
            if ($json == false) {
                $message = sprintf('Error decoding %s.', $schema_path);
                $this->logger->error($message);
            }
        } else {
            $message = sprintf('Could not load file %s.', $schema_path);
            $this->logger->error($message);
        }

        return $json;
    }
protected function loadSchema ( $ schema_path ) { $ json = false ; if ( file_exists ( $ schema_path ) ) { $ contents = file_get_contents ( $ schema_path ) ; $ json = json_decode ( $ contents ) ; if ( $ json == false ) { $ message = sprintf ( 'Error decoding %s.' , $ schema_path ) ; $ this -> logger -> error ( $ message ) ; } } else { $ message = sprintf ( 'Could not load file %s.' , $ schema_path ) ; $ this -> logger -> error ( $ message ) ; } return $ json ; }
Load the JSON file from disk.

@param string $schema_path Path to JSON file.

@return mixed A PHP object from the JSON or FALSE if file not found.
Load the JSON file from disk .