for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Install GitHub App
<?php
declare(strict_types=1);
namespace Overblog\GraphQLBundle\Definition;
use GraphQL\Type\Definition\ResolveInfo;
use GraphQL\Type\Definition\Type;
use Overblog\GraphQLBundle\Validator\InputValidator;
use Symfony\Component\DependencyInjection\ServiceLocator;
/**
* Container for special services to be passed to all generated types.
*/
final class GraphQLServices extends ServiceLocator
{
* @param mixed ...$args
*
* @return mixed
public function query(string $alias, ...$args)
return $this->get('queryResolver')->resolve([$alias, $args]);
}
public function mutation(string $alias, ...$args)
return $this->get('mutationResolver')->resolve([$alias, $args]);
public function getType(string $typeName): ?Type
return $this->get('typeResolver')->resolve($typeName);
* Creates an instance of InputValidator
* @param mixed $value
* @param mixed $context
public function createInputValidator($value, ArgumentInterface $args, $context, ResolveInfo $info): InputValidator
return $this->get('input_validator_factory')->create(
new ResolverArgs($value, $args, $context, $info)
);