Skip to content

Commit e3164ef

Browse files
authored
Merge pull request #16 from xkobal/master
User Deprecated: Referencing controllers with a single colon is deprecated since Symfony 4.1.
2 parents b6581c4 + fd5794a commit e3164ef

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Resources/config/routing.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
http://symfony.com/schema/routing/routing-1.0.xsd">
66

77
<route id="overblog_graphiql_endpoint" path="/graphiql">
8-
<default key="_controller">overblog_graphiql.controller:indexAction</default>
8+
<default key="_controller">Overblog\GraphiQLBundle\Controller\GraphiQLController::indexAction</default>
99
</route>
1010

1111
<route id="overblog_graphiql_endpoint_multiple" path="/graphiql/{schemaName}">
12-
<default key="_controller">overblog_graphiql.controller:indexAction</default>
12+
<default key="_controller">Overblog\GraphiQLBundle\Controller\GraphiQLController::indexAction</default>
1313
</route>
1414
</routes>

Resources/config/services.xml

+4
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,9 @@
2424
<argument type="service" id="overblog_graphiql.view.config" />
2525
<argument type="service" id="overblog_graphiql.controller.graphql.endpoint" />
2626
</service>
27+
<service id="Overblog\GraphiQLBundle\Controller\GraphiQLController"
28+
alias="overblog_graphiql.controller"
29+
public="true">
30+
</service>
2731
</services>
2832
</container>

0 commit comments

Comments
 (0)