Skip to content

Commit 72c5e40

Browse files
authored
Fix "referencing controllers with a single colon is deprecated" (FriendsOfSymfony#662)
This commit is the same as FriendsOfSymfony#592 However now SF <4.4 are officially not supported this should not break BC.
1 parent 9462735 commit 72c5e40

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Resources/config/routing/authorize.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
xsi:schemaLocation="http://symfony.com/schema/routing http://symfony.com/schema/routing/routing-1.0.xsd">
66

77
<route id="fos_oauth_server_authorize" path="/oauth/v2/auth" methods="GET POST">
8-
<default key="_controller">fos_oauth_server.controller.authorize:authorizeAction</default>
8+
<default key="_controller">fos_oauth_server.controller.authorize::authorizeAction</default>
99
</route>
1010

1111
</routes>

Resources/config/routing/token.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
xsi:schemaLocation="http://symfony.com/schema/routing http://symfony.com/schema/routing/routing-1.0.xsd">
66

77
<route id="fos_oauth_server_token" path="/oauth/v2/token" methods="GET POST">
8-
<default key="_controller">fos_oauth_server.controller.token:tokenAction</default>
8+
<default key="_controller">fos_oauth_server.controller.token::tokenAction</default>
99
</route>
1010

1111
</routes>

0 commit comments

Comments
 (0)