@@ -77,19 +77,19 @@ |
||
77 | 77 | |
78 | 78 | /** @var NodeBuilder $rootNode */ |
79 | 79 | $config->scalarNode('target') |
80 | - ->info('Target node to properly paginate. If is possible will be auto-resolved using naming conventions') |
|
81 | - ->isRequired(); |
|
80 | + ->info('Target node to properly paginate. If is possible will be auto-resolved using naming conventions') |
|
81 | + ->isRequired(); |
|
82 | 82 | $config->variableNode('filters') |
83 | - ->info('Filters configuration'); |
|
83 | + ->info('Filters configuration'); |
|
84 | 84 | $config->variableNode('order_by'); |
85 | 85 | $config->variableNode('search_fields'); |
86 | 86 | $config->integerNode('limit')->info('Max number of records allowed for first & last')->defaultValue($this->limit); |
87 | 87 | $config->scalarNode('parent_field') |
88 | - ->info('When is used in sub-fields should be the field to filter by parent instance'); |
|
88 | + ->info('When is used in sub-fields should be the field to filter by parent instance'); |
|
89 | 89 | $config->enumNode('parent_relation') |
90 | - ->info('When is used in sub-fields should be the type of relation with the parent field') |
|
91 | - ->defaultValue(self::ONE_TO_MANY) |
|
92 | - ->values([self::ONE_TO_MANY, self::MANY_TO_MANY]); |
|
90 | + ->info('When is used in sub-fields should be the type of relation with the parent field') |
|
91 | + ->defaultValue(self::ONE_TO_MANY) |
|
92 | + ->values([self::ONE_TO_MANY, self::MANY_TO_MANY]); |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | /** |
@@ -84,12 +84,12 @@ |
||
84 | 84 | ); |
85 | 85 | $config->variableNode('options')->defaultValue([])->info('Form options'); |
86 | 86 | $config->variableNode('argument') |
87 | - ->defaultValue('input') |
|
88 | - ->info('Name of the argument to use as input'); |
|
87 | + ->defaultValue('input') |
|
88 | + ->info('Name of the argument to use as input'); |
|
89 | 89 | |
90 | 90 | $config->booleanNode('client_mutation_id') |
91 | - ->defaultTrue() |
|
92 | - ->info('Automatically add a field called clientMutationId'); |
|
91 | + ->defaultTrue() |
|
92 | + ->info('Automatically add a field called clientMutationId'); |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | /** |
@@ -52,12 +52,12 @@ |
||
52 | 52 | 'resolveField' => function ($root, array $args, ResolverContext $context, ResolveInfo $resolveInfo) use ($definition) { |
53 | 53 | $resolver = new ObjectFieldResolver($this->container); |
54 | 54 | $context = ContextBuilder::create($context->getEndpoint()) |
55 | - ->setRoot($root) |
|
56 | - ->setResolveInfo($resolveInfo) |
|
57 | - ->setArgs($args) |
|
58 | - ->setMetas($context->getMetas()) |
|
59 | - ->setDefinition($definition->getField($resolveInfo->fieldName)) |
|
60 | - ->build(); |
|
55 | + ->setRoot($root) |
|
56 | + ->setResolveInfo($resolveInfo) |
|
57 | + ->setArgs($args) |
|
58 | + ->setMetas($context->getMetas()) |
|
59 | + ->setDefinition($definition->getField($resolveInfo->fieldName)) |
|
60 | + ->build(); |
|
61 | 61 | |
62 | 62 | |
63 | 63 | return $resolver($root, $args, $context, $resolveInfo); |
@@ -57,7 +57,7 @@ |
||
57 | 57 | protected function configure() |
58 | 58 | { |
59 | 59 | $this->setName('graphql:subscriptions:consume') |
60 | - ->setDescription('Listen for subscriptions to consume then and dispatch to mercure HUB.'); |
|
60 | + ->setDescription('Listen for subscriptions to consume then and dispatch to mercure HUB.'); |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
@@ -136,12 +136,12 @@ |
||
136 | 136 | |
137 | 137 | if ($resolver && $refMethod) { |
138 | 138 | $this->context = ContextBuilder::create($context->getEndpoint()) |
139 | - ->setRoot($root) |
|
140 | - ->setResolveInfo($resolveInfo) |
|
141 | - ->setArgs($args) |
|
142 | - ->setMetas($context->getMetas()) |
|
143 | - ->setDefinition($this->executableDefinition) |
|
144 | - ->build(); |
|
139 | + ->setRoot($root) |
|
140 | + ->setResolveInfo($resolveInfo) |
|
141 | + ->setArgs($args) |
|
142 | + ->setMetas($context->getMetas()) |
|
143 | + ->setDefinition($this->executableDefinition) |
|
144 | + ->build(); |
|
145 | 145 | |
146 | 146 | if ($resolver instanceof ResolverInterface) { |
147 | 147 | $resolver->setContext($this->context); |
@@ -88,12 +88,12 @@ |
||
88 | 88 | } |
89 | 89 | |
90 | 90 | $context = ContextBuilder::create($context->getEndpoint()) |
91 | - ->setArgs($args) |
|
92 | - ->setRoot($root) |
|
93 | - ->setDefinition($queryDefinition) |
|
94 | - ->setResolveInfo($info) |
|
95 | - ->setMetas($context->getMetas()) |
|
96 | - ->build(); |
|
91 | + ->setArgs($args) |
|
92 | + ->setRoot($root) |
|
93 | + ->setDefinition($queryDefinition) |
|
94 | + ->setResolveInfo($info) |
|
95 | + ->setMetas($context->getMetas()) |
|
96 | + ->build(); |
|
97 | 97 | |
98 | 98 | $resolver = new ResolverExecutor($this->container, $queryDefinition); |
99 | 99 | $value = $resolver($root, $args, $context, $info); |
@@ -52,12 +52,12 @@ |
||
52 | 52 | 'resolveField' => function ($root, array $args, ResolverContext $context, ResolveInfo $resolveInfo) use ($definition) { |
53 | 53 | $resolver = new ObjectFieldResolver($this->container); |
54 | 54 | $context = ContextBuilder::create($context->getEndpoint()) |
55 | - ->setRoot($root) |
|
56 | - ->setResolveInfo($resolveInfo) |
|
57 | - ->setArgs($args) |
|
58 | - ->setMetas($context->getMetas()) |
|
59 | - ->setDefinition($definition->getField($resolveInfo->fieldName)) |
|
60 | - ->build(); |
|
55 | + ->setRoot($root) |
|
56 | + ->setResolveInfo($resolveInfo) |
|
57 | + ->setArgs($args) |
|
58 | + ->setMetas($context->getMetas()) |
|
59 | + ->setDefinition($definition->getField($resolveInfo->fieldName)) |
|
60 | + ->build(); |
|
61 | 61 | |
62 | 62 | |
63 | 63 | return $resolver($root, $args, $context, $resolveInfo); |
@@ -55,8 +55,8 @@ |
||
55 | 55 | $container->registerForAutoconfiguration(InputFieldTypeGuesser::class)->addTag('graphql.input_type_guesser'); |
56 | 56 | $container->registerForAutoconfiguration(FilterResolverInterface::class)->addTag('graphql.filter_resolver'); |
57 | 57 | $container->registerForAutoconfiguration(FilterInterface::class) |
58 | - ->addTag('graphql.list_filter') |
|
59 | - ->setPublic(true); |
|
58 | + ->addTag('graphql.list_filter') |
|
59 | + ->setPublic(true); |
|
60 | 60 | } |
61 | 61 | |
62 | 62 | /** |
@@ -78,11 +78,11 @@ |
||
78 | 78 | $eventDispatcher = $this->container->get(EventDispatcherInterface::class); |
79 | 79 | |
80 | 80 | $context = ContextBuilder::create($this->endpoint) |
81 | - ->setRoot($root) |
|
82 | - ->setDefinition($query) |
|
83 | - ->setResolveInfo($resolveInfo) |
|
84 | - ->setMetas($context->getMetas()) |
|
85 | - ->build(); |
|
81 | + ->setRoot($root) |
|
82 | + ->setDefinition($query) |
|
83 | + ->setResolveInfo($resolveInfo) |
|
84 | + ->setMetas($context->getMetas()) |
|
85 | + ->build(); |
|
86 | 86 | |
87 | 87 | $event = new GraphQLFieldEvent($context); |
88 | 88 | $eventDispatcher->dispatch(GraphQLEvents::PRE_READ_FIELD, $event); |