Skip to content

Commit b02efed

Browse files
committed
Merge branch 'master' into annotations
2 parents 87a0717 + 4594d16 commit b02efed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/security/fields-public-control.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ You can also use `config.fieldsDefaultPublic` to handle the setting globally on
5454
```yaml
5555
AnObject:
5656
type: object
57-
fieldsDefaultPublic: "@=service('my_service').isGranted(typeName, fieldName)"
5857
config:
58+
fieldsDefaultPublic: "@=service('my_service').isGranted(typeName, fieldName)"
5959
fields:
6060
id:
6161
type: "String!"

src/DependencyInjection/Compiler/GlobalVariablesPass.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function process(ContainerBuilder $container): void
3434
$expressionLanguageDefinition->addMethodCall(
3535
'addGlobalName',
3636
[
37-
\sprintf('globalVariables->get(\'%s\')', $attributes['alias']),
37+
\sprintf('globalVariable->get(\'%s\')', $attributes['alias']),
3838
$attributes['alias'],
3939
]
4040
);

0 commit comments

Comments
 (0)