Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
graphql
Commits
0e6d1458
Commit
0e6d1458
authored
May 08, 2016
by
fubhy
Browse files
Enabling schema caching.
parent
4111b766
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/SchemaLoader.php
View file @
0e6d1458
...
...
@@ -50,7 +50,7 @@ class SchemaLoader {
*/
public
function
loadSchema
(
LanguageInterface
$language
)
{
if
(
$schema
=
$this
->
schemaCache
->
get
(
$language
->
getId
()))
{
//
return $schema->data;
return
$schema
->
data
;
}
$query
=
new
ObjectType
(
'Root'
,
$this
->
schemaProvider
->
getQuerySchema
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment