for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Drupal\graphql_core\Plugin\GraphQL\Schemas;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\graphql\Plugin\GraphQL\Schemas\PluggableSchemaPluginBase;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
* Default generated schema.
*
* @GraphQLSchema(
* id = "default",
* name = "Default",
* path = "/graphql"
* )
*/
class DefaultSchema extends PluggableSchemaPluginBase implements ContainerFactoryPluginInterface {
* {@inheritdoc}
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
$managers = [
$container->get('plugin.manager.graphql.type'),
$container->get('plugin.manager.graphql.interface'),
$container->get('plugin.manager.graphql.union_type'),
$container->get('plugin.manager.graphql.input_type'),
$container->get('plugin.manager.graphql.enum'),
$container->get('plugin.manager.graphql.scalar'),
$container->get('plugin.manager.graphql.field'),
$container->get('plugin.manager.graphql.mutation'),
];
return new static($configuration + ['managers' => $managers], $plugin_id, $plugin_definition);
}