src/GraphQL/QueryProvider/GqlQueryMapQueryProvider.php 1 location
|
@@ 48-50 (lines=3) @@
|
45 |
|
return NULL; |
46 |
|
} |
47 |
|
|
48 |
|
if (!(($cache = $this->cacheBackend->get('graphql_query_map_gql_versions')) && ($versions = $cache->data) !== NULL)) { |
49 |
|
$this->cacheBackend->set('graphql_query_map_gql_versions', $versions = $this->discoverQueryMaps()); |
50 |
|
} |
51 |
|
|
52 |
|
if (isset($versions) && isset($versions[$id]) && file_exists($versions[$id])) { |
53 |
|
return file_get_contents($versions[$id]); |
src/GraphQL/QueryProvider/JsonQueryMapQueryProvider.php 1 location
|
@@ 50-52 (lines=3) @@
|
47 |
|
return NULL; |
48 |
|
} |
49 |
|
|
50 |
|
if (!(($cache = $this->cacheBackend->get('graphql_query_map_json_versions')) && ($versions = $cache->data) !== NULL)) { |
51 |
|
$this->cacheBackend->set('graphql_query_map_json_versions', $versions = $this->discoverQueryMaps()); |
52 |
|
} |
53 |
|
|
54 |
|
if (isset($versions) && isset($versions[$version]) && file_exists($versions[$version])) { |
55 |
|
$contents = json_decode(file_get_contents($versions[$version]), TRUE); |