@@ -207,10 +207,10 @@ |
||
207 | 207 | $paramName = 'root'.mt_rand(); |
208 | 208 | if ($this->queryDefinition->getMeta('pagination')['parent_relation'] === PaginationDefinitionPlugin::MANY_TO_MANY) { |
209 | 209 | $qb->andWhere(sprintf(':%s MEMBER OF %s.%s', $paramName, $this->queryAlias, $parentField)) |
210 | - ->setParameter($paramName, $root); |
|
210 | + ->setParameter($paramName, $root); |
|
211 | 211 | } else { |
212 | 212 | $qb->andWhere(sprintf('%s.%s = :%s', $this->queryAlias, $parentField, $paramName)) |
213 | - ->setParameter($paramName, $root); |
|
213 | + ->setParameter($paramName, $root); |
|
214 | 214 | } |
215 | 215 | } |
216 | 216 | } |
@@ -31,8 +31,8 @@ |
||
31 | 31 | protected function configure() |
32 | 32 | { |
33 | 33 | $this->setName('graphql:plugins') |
34 | - ->setDescription('Expose all available options for one or all graphql plugins') |
|
35 | - ->addArgument('plugin', InputArgument::OPTIONAL, 'Show only options for given plugin'); |
|
34 | + ->setDescription('Expose all available options for one or all graphql plugins') |
|
35 | + ->addArgument('plugin', InputArgument::OPTIONAL, 'Show only options for given plugin'); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | /** |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | $graphiql = $root->arrayNode('graphiql')->addDefaultsIfNotSet()->children(); |
44 | 44 | |
45 | 45 | $graphiql->scalarNode('title') |
46 | - ->defaultValue('GraphQL API Explorer'); |
|
46 | + ->defaultValue('GraphQL API Explorer'); |
|
47 | 47 | |
48 | 48 | $graphiql |
49 | 49 | ->scalarNode('data_warning_message') |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | $graphiql->enumNode('data_warning_style')->values(['info', 'warning', 'danger'])->defaultValue('danger'); |
53 | 53 | |
54 | 54 | $graphiql->scalarNode('template') |
55 | - ->defaultValue('@YnloGraphQL/explorer.html.twig'); |
|
55 | + ->defaultValue('@YnloGraphQL/explorer.html.twig'); |
|
56 | 56 | |
57 | 57 | $authentication = $graphiql->arrayNode('authentication')->addDefaultsIfNotSet()->children(); |
58 | 58 | $authentication |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | ->defaultFalse(); |
65 | 65 | |
66 | 66 | $authentication->scalarNode('login_message') |
67 | - ->defaultValue('Start exploring GraphQL API queries using your account’s data now.'); |
|
67 | + ->defaultValue('Start exploring GraphQL API queries using your account’s data now.'); |
|
68 | 68 | |
69 | 69 | $authenticationProvider = $authentication->arrayNode('provider')->children(); |
70 | 70 | |
@@ -73,29 +73,29 @@ discard block |
||
73 | 73 | $jwtLogin = $jwt->arrayNode('login')->children(); |
74 | 74 | |
75 | 75 | $jwtLogin->scalarNode('url') |
76 | - ->info('Route name or URI to make the login process to retrieve the token.') |
|
77 | - ->isRequired(); |
|
76 | + ->info('Route name or URI to make the login process to retrieve the token.') |
|
77 | + ->isRequired(); |
|
78 | 78 | |
79 | 79 | $jwtLogin->scalarNode('username_parameter') |
80 | - ->defaultValue('username'); |
|
80 | + ->defaultValue('username'); |
|
81 | 81 | |
82 | 82 | $jwtLogin->scalarNode('username_label') |
83 | - ->defaultValue('Username'); |
|
83 | + ->defaultValue('Username'); |
|
84 | 84 | |
85 | 85 | $jwtLogin->scalarNode('password_parameter') |
86 | - ->defaultValue('password'); |
|
86 | + ->defaultValue('password'); |
|
87 | 87 | |
88 | 88 | $jwtLogin->scalarNode('password_label') |
89 | - ->defaultValue('Password'); |
|
89 | + ->defaultValue('Password'); |
|
90 | 90 | |
91 | 91 | $jwtLogin->enumNode('parameters_in') |
92 | - ->values(['form', 'query', 'header']) |
|
93 | - ->info('How pass parameters to request the token') |
|
94 | - ->defaultValue('form'); |
|
92 | + ->values(['form', 'query', 'header']) |
|
93 | + ->info('How pass parameters to request the token') |
|
94 | + ->defaultValue('form'); |
|
95 | 95 | |
96 | 96 | $jwtLogin->scalarNode('response_token_path') |
97 | - ->defaultValue('token') |
|
98 | - ->info('Where the token should be located in the response in case of JSON, set null if the response is the token.'); |
|
97 | + ->defaultValue('token') |
|
98 | + ->info('Where the token should be located in the response in case of JSON, set null if the response is the token.'); |
|
99 | 99 | |
100 | 100 | $jwtRequests = $jwt->arrayNode('requests')->addDefaultsIfNotSet()->children(); |
101 | 101 | |
@@ -113,8 +113,8 @@ discard block |
||
113 | 113 | ->info('Customize how the token should be send, use the place holder {token} to replace for current token'); |
114 | 114 | |
115 | 115 | $authenticationProvider->scalarNode('custom') |
116 | - ->defaultNull() |
|
117 | - ->info('Configure custom service to use as authentication provider'); |
|
116 | + ->defaultNull() |
|
117 | + ->info('Configure custom service to use as authentication provider'); |
|
118 | 118 | } |
119 | 119 | |
120 | 120 | protected function configureCORS(NodeBuilder $root) |
@@ -140,25 +140,25 @@ discard block |
||
140 | 140 | { |
141 | 141 | $pagination = $root->arrayNode('pagination')->addDefaultsIfNotSet()->children(); |
142 | 142 | $pagination->integerNode('limit') |
143 | - ->defaultValue(100)->info('Maximum limit allowed for all paginations'); |
|
143 | + ->defaultValue(100)->info('Maximum limit allowed for all paginations'); |
|
144 | 144 | } |
145 | 145 | |
146 | 146 | protected function configureExtensionNamespace(NodeBuilder $root) |
147 | 147 | { |
148 | 148 | $namespaces = $root->arrayNode('namespaces') |
149 | - ->info( |
|
150 | - 'Group GraphQL schema using namespaced schemas. |
|
149 | + ->info( |
|
150 | + 'Group GraphQL schema using namespaced schemas. |
|
151 | 151 | On large schemas is helpful to keep schemas grouped by bundle and node' |
152 | - ) |
|
153 | - ->canBeEnabled() |
|
154 | - ->addDefaultsIfNotSet() |
|
155 | - ->children(); |
|
152 | + ) |
|
153 | + ->canBeEnabled() |
|
154 | + ->addDefaultsIfNotSet() |
|
155 | + ->children(); |
|
156 | 156 | |
157 | 157 | $bundles = $namespaces->arrayNode('bundles') |
158 | - ->info('Group each bundle into a separate schema definition') |
|
159 | - ->canBeDisabled() |
|
160 | - ->addDefaultsIfNotSet() |
|
161 | - ->children(); |
|
158 | + ->info('Group each bundle into a separate schema definition') |
|
159 | + ->canBeDisabled() |
|
160 | + ->addDefaultsIfNotSet() |
|
161 | + ->children(); |
|
162 | 162 | |
163 | 163 | $bundles->scalarNode('query_suffix') |
164 | 164 | ->info('The following suffix will be used for bundle query groups') |
@@ -189,25 +189,25 @@ discard block |
||
189 | 189 | ->children(); |
190 | 190 | |
191 | 191 | $nodes->scalarNode('query_suffix') |
192 | - ->info('The following suffix will be used to create the name for queries to the same node') |
|
193 | - ->defaultValue('Query'); |
|
192 | + ->info('The following suffix will be used to create the name for queries to the same node') |
|
193 | + ->defaultValue('Query'); |
|
194 | 194 | |
195 | 195 | $nodes->scalarNode('mutation_suffix') |
196 | - ->info('The following suffix will be used to create the name for mutations to the same node') |
|
197 | - ->defaultValue('Mutation'); |
|
196 | + ->info('The following suffix will be used to create the name for mutations to the same node') |
|
197 | + ->defaultValue('Mutation'); |
|
198 | 198 | |
199 | 199 | $nodes->variableNode('ignore') |
200 | - ->info('The following nodes will be ignore for grouping, all definitions will be placed in the root query or mutation') |
|
201 | - ->defaultValue(['Node']); |
|
200 | + ->info('The following nodes will be ignore for grouping, all definitions will be placed in the root query or mutation') |
|
201 | + ->defaultValue(['Node']); |
|
202 | 202 | |
203 | 203 | $nodes->arrayNode('aliases') |
204 | - ->info( |
|
205 | - 'Define aliases for nodes to set definitions inside other desired node name. |
|
204 | + ->info( |
|
205 | + 'Define aliases for nodes to set definitions inside other desired node name. |
|
206 | 206 | Can be used to group multiple nodes or publish a node with a different group name' |
207 | - ) |
|
208 | - ->example('InvoiceItem: Invoice') |
|
209 | - ->useAttributeAsKey('name') |
|
210 | - ->prototype('scalar'); |
|
207 | + ) |
|
208 | + ->example('InvoiceItem: Invoice') |
|
209 | + ->useAttributeAsKey('name') |
|
210 | + ->prototype('scalar'); |
|
211 | 211 | } |
212 | 212 | |
213 | 213 | private function configureSecurity(NodeBuilder $rootNode) |
@@ -68,7 +68,7 @@ |
||
68 | 68 | } |
69 | 69 | $this->definitionVisited[$key] = true; |
70 | 70 | |
71 | - $type = $endpoint->hasType($definition->getType()) ? $endpoint->getType($definition->getType()): null; |
|
71 | + $type = $endpoint->hasType($definition->getType()) ? $endpoint->getType($definition->getType()) : null; |
|
72 | 72 | |
73 | 73 | if (($roles = $definition->getRoles()) && !$this->authorizationChecker->isGranted($roles)) { |
74 | 74 | if ($parent) { |
@@ -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 | /** |
@@ -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 | /** |