Skip to content

Commit ac4239b

Browse files
authored
Update documentation for Symfony 4
1 parent b00d2bc commit ac4239b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Resources/doc/custom-http-headers.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@ The header can be added the following way:
1717
1. Override the default GraphiQL template:
1818

1919
```yaml
20+
# config/packages/graphiql.yaml or app/config/config.yml for Symfony without Flex
2021
overblog_graphiql:
2122
template: "GraphiQL/index.html.twig"
2223
```
2324
2. Create a new template:
2425
2526
```twig
2627
{# templates/GraphiQL/index.html.twig #}
27-
{% extends 'OverblogGraphiQLBundle:GraphiQL:index.html.twig' %}
28+
{% extends '@OverblogGraphiQL/GraphiQL/index.html.twig' %}
2829

2930
{% block graphql_fetcher_headers %}
3031
headers = {
@@ -39,7 +40,7 @@ Or append headers instead of replacing the default one:
3940

4041
```twig
4142
{# templates/GraphiQL/index.html.twig #}
42-
{% extends 'OverblogGraphiQLBundle:GraphiQL:index.html.twig' %}
43+
{% extends '@OverblogGraphiQL/GraphiQL/index.html.twig' %}
4344
4445
{% block graphql_fetcher_headers %}
4546
{{ parent() }}

0 commit comments

Comments
 (0)