@@ 296-298 (lines=3) @@ | ||
293 | $metadata = new CacheableMetadata(); |
|
294 | ||
295 | foreach (TypeCollector::collectTypes($schema) as $type) { |
|
296 | if ($type instanceof TypeSystemPluginReferenceInterface && ($plugin = $type->getPlugin()) instanceof TypeSystemPluginInterface) { |
|
297 | $metadata->addCacheableDependency($extract($plugin)); |
|
298 | } |
|
299 | ||
300 | if ($type instanceof AbstractObjectType || $type instanceof AbstractInputObjectType || $type instanceof AbstractInterfaceType) { |
|
301 | foreach ($type->getFields() as $field) { |
|
@@ 302-304 (lines=3) @@ | ||
299 | ||
300 | if ($type instanceof AbstractObjectType || $type instanceof AbstractInputObjectType || $type instanceof AbstractInterfaceType) { |
|
301 | foreach ($type->getFields() as $field) { |
|
302 | if ($field instanceof TypeSystemPluginReferenceInterface && ($plugin = $field->getPlugin()) instanceof TypeSystemPluginInterface) { |
|
303 | $metadata->addCacheableDependency($extract($plugin)); |
|
304 | } |
|
305 | } |
|
306 | } |
|
307 | } |