Skip to content

Commit 2f402da

Browse files
committed
Internal: Fix deprecation warnings: update API platform and framework settings for serializer and GraphQL
1 parent 0e58059 commit 2f402da

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

config/packages/api_platform.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@ api_platform:
5050

5151
use_symfony_listeners: true
5252

53+
serializer:
54+
hydra_prefix: true
55+
56+
keep_legacy_inflector: false
57+
58+
graphql:
59+
graphql_playground:
60+
enabled: false
61+
5362
# mercure:
5463
# hub_url: '%env(MERCURE_SUBSCRIBE_URL)%'
5564

config/packages/framework.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ framework:
1717
#fragments: true
1818
php_errors:
1919
log: true
20-
serializer: {enable_annotations: true}
20+
serializer: {enable_attributes: true}
2121
trusted_proxies: '%env(TRUSTED_PROXIES)%'
2222
trusted_headers: ['x-forwarded-for', 'x-forwarded-host', 'x-forwarded-proto', 'x-forwarded-port']
2323
# For legacy code (ending in ".php"), also edit public/main/inc/global.inc.php according to the changes you make here

config/services.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ parameters:
1414
theme_fallback: '%env(THEME_FALLBACK)%'
1515
packager: '%env(PACKAGER)%'
1616
default_template: '%env(DEFAULT_TEMPLATE)%'
17-
container.dumper.inline_factories: true
17+
.container.dumper.inline_factories: true
1818
twig:
1919
form:
2020
resources:

0 commit comments

Comments
 (0)