@@ -46,25 +46,25 @@ discard block |
||
| 46 | 46 | { |
| 47 | 47 | $pagination = $root->arrayNode('pagination')->addDefaultsIfNotSet()->children(); |
| 48 | 48 | $pagination->integerNode('limit') |
| 49 | - ->defaultValue(100)->info('Maximum limit allowed for all paginations'); |
|
| 49 | + ->defaultValue(100)->info('Maximum limit allowed for all paginations'); |
|
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | protected function configureExtensionNamespace(NodeBuilder $root) |
| 53 | 53 | { |
| 54 | 54 | $namespaces = $root->arrayNode('namespaces') |
| 55 | - ->info( |
|
| 56 | - 'Group GraphQL schema using namespaced schemas. |
|
| 55 | + ->info( |
|
| 56 | + 'Group GraphQL schema using namespaced schemas. |
|
| 57 | 57 | On large schemas is helpful to keep schemas grouped by bundle and node' |
| 58 | - ) |
|
| 59 | - ->canBeDisabled() |
|
| 60 | - ->addDefaultsIfNotSet() |
|
| 61 | - ->children(); |
|
| 58 | + ) |
|
| 59 | + ->canBeDisabled() |
|
| 60 | + ->addDefaultsIfNotSet() |
|
| 61 | + ->children(); |
|
| 62 | 62 | |
| 63 | 63 | $bundles = $namespaces->arrayNode('bundles') |
| 64 | - ->info('Group each bundle into a separate schema definition') |
|
| 65 | - ->canBeDisabled() |
|
| 66 | - ->addDefaultsIfNotSet() |
|
| 67 | - ->children(); |
|
| 64 | + ->info('Group each bundle into a separate schema definition') |
|
| 65 | + ->canBeDisabled() |
|
| 66 | + ->addDefaultsIfNotSet() |
|
| 67 | + ->children(); |
|
| 68 | 68 | |
| 69 | 69 | $bundles->scalarNode('suffix') |
| 70 | 70 | ->info('The following suffix will be used for bundle groups') |
@@ -91,24 +91,24 @@ discard block |
||
| 91 | 91 | ->children(); |
| 92 | 92 | |
| 93 | 93 | $nodes->scalarNode('query_suffix') |
| 94 | - ->info('The following suffix will be used to create the name for queries to the same node') |
|
| 95 | - ->defaultValue('Query'); |
|
| 94 | + ->info('The following suffix will be used to create the name for queries to the same node') |
|
| 95 | + ->defaultValue('Query'); |
|
| 96 | 96 | |
| 97 | 97 | $nodes->scalarNode('mutation_suffix') |
| 98 | - ->info('The following suffix will be used to create the name for mutations to the same node') |
|
| 99 | - ->defaultValue('Mutation'); |
|
| 98 | + ->info('The following suffix will be used to create the name for mutations to the same node') |
|
| 99 | + ->defaultValue('Mutation'); |
|
| 100 | 100 | |
| 101 | 101 | $nodes->variableNode('ignore') |
| 102 | - ->info('The following nodes will be ignore for grouping, all definitions will be placed in the root query or mutation') |
|
| 103 | - ->defaultValue(['Node']); |
|
| 102 | + ->info('The following nodes will be ignore for grouping, all definitions will be placed in the root query or mutation') |
|
| 103 | + ->defaultValue(['Node']); |
|
| 104 | 104 | |
| 105 | 105 | $nodes->arrayNode('aliases') |
| 106 | - ->info( |
|
| 107 | - 'Define aliases for nodes to set definitions inside other desired node name. |
|
| 106 | + ->info( |
|
| 107 | + 'Define aliases for nodes to set definitions inside other desired node name. |
|
| 108 | 108 | Can be used to group multiple nodes or publish a node with a different group name' |
| 109 | - ) |
|
| 110 | - ->example('InvoiceItem: Invoice') |
|
| 111 | - ->useAttributeAsKey('name') |
|
| 112 | - ->prototype('scalar'); |
|
| 109 | + ) |
|
| 110 | + ->example('InvoiceItem: Invoice') |
|
| 111 | + ->useAttributeAsKey('name') |
|
| 112 | + ->prototype('scalar'); |
|
| 113 | 113 | } |
| 114 | 114 | } |
@@ -67,22 +67,22 @@ |
||
| 67 | 67 | ->children(); |
| 68 | 68 | |
| 69 | 69 | $config->variableNode('type') |
| 70 | - ->defaultNull() |
|
| 71 | - ->info( |
|
| 72 | - 'Specify the form type to use, |
|
| 70 | + ->defaultNull() |
|
| 71 | + ->info( |
|
| 72 | + 'Specify the form type to use, |
|
| 73 | 73 | [string] Name of the form type to use |
| 74 | 74 | [true|null] The form will be automatically resolved to ...Bundle\Form\Input\{Node}\{MutationName}Input. |
| 75 | 75 | [true] Throw a exception if the form can`t be located |
| 76 | 76 | [false] The form is not required and should not be resolved' |
| 77 | - ); |
|
| 77 | + ); |
|
| 78 | 78 | $config->variableNode('options')->defaultValue([])->info('Form options'); |
| 79 | 79 | $config->variableNode('argument') |
| 80 | - ->defaultValue('input') |
|
| 81 | - ->info('Name of the argument to use as input'); |
|
| 80 | + ->defaultValue('input') |
|
| 81 | + ->info('Name of the argument to use as input'); |
|
| 82 | 82 | |
| 83 | 83 | $config->booleanNode('client_mutation_id') |
| 84 | - ->defaultTrue() |
|
| 85 | - ->info('Automatically add a field called clientMutationId'); |
|
| 84 | + ->defaultTrue() |
|
| 85 | + ->info('Automatically add a field called clientMutationId'); |
|
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | /** |
@@ -65,15 +65,15 @@ |
||
| 65 | 65 | |
| 66 | 66 | /** @var NodeBuilder $rootNode */ |
| 67 | 67 | $config->scalarNode('target') |
| 68 | - ->info('Target node to properly paginate. If is possible will be auto-resolved using naming conventions') |
|
| 69 | - ->isRequired(); |
|
| 68 | + ->info('Target node to properly paginate. If is possible will be auto-resolved using naming conventions') |
|
| 69 | + ->isRequired(); |
|
| 70 | 70 | $config->integerNode('limit')->info('Max number of records allowed for first & last')->defaultValue($this->limit); |
| 71 | 71 | $config->scalarNode('parent_field') |
| 72 | - ->info('When is used in sub-fields should be the field to filter by parent instance'); |
|
| 72 | + ->info('When is used in sub-fields should be the field to filter by parent instance'); |
|
| 73 | 73 | $config->enumNode('parent_relation') |
| 74 | - ->info('When is used in sub-fields should be the type of relation with the parent field') |
|
| 75 | - ->defaultValue(self::ONE_TO_MANY) |
|
| 76 | - ->values([self::ONE_TO_MANY, self::MANY_TO_MANY]); |
|
| 74 | + ->info('When is used in sub-fields should be the type of relation with the parent field') |
|
| 75 | + ->defaultValue(self::ONE_TO_MANY) |
|
| 76 | + ->values([self::ONE_TO_MANY, self::MANY_TO_MANY]); |
|
| 77 | 77 | } |
| 78 | 78 | |
| 79 | 79 | /** |
@@ -129,10 +129,10 @@ |
||
| 129 | 129 | $paramName = 'root'.mt_rand(); |
| 130 | 130 | if ($this->queryDefinition->getMeta('pagination')['parent_relation'] === PaginationDefinitionExtension::MANY_TO_MANY) { |
| 131 | 131 | $qb->andWhere(sprintf(':%s MEMBER OF %s.%s', $paramName, $this->queryAlias, $parentField)) |
| 132 | - ->setParameter($paramName, $root); |
|
| 132 | + ->setParameter($paramName, $root); |
|
| 133 | 133 | } else { |
| 134 | 134 | $qb->andWhere(sprintf('%s.%s = :%s', $this->queryAlias, $parentField, $paramName)) |
| 135 | - ->setParameter($paramName, $root); |
|
| 135 | + ->setParameter($paramName, $root); |
|
| 136 | 136 | } |
| 137 | 137 | } |
| 138 | 138 | } |