Skip to content

Commit 1a9b167

Browse files
committed
Fix
1 parent 5e82520 commit 1a9b167

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/DependencyInjection/Compiler/IdentifyCallbackServiceIdsPass.php

+3
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ private function resolveServiceIdAndMethod(ContainerBuilder $container, ?array &
5252
return;
5353
}
5454
[$id, $method] = explode('::', $callback['function'], 2) + [null, null];
55+
if (str_starts_with($id, '\\')) {
56+
$id = ltrim($id, '\\');
57+
}
5558

5659
try {
5760
$definition = $container->getDefinition($id);

tests/Functional/App/config/connection/mapping/connection.types.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ User:
2525
friendsBackward:
2626
type: userConnection
2727
argsBuilder: "Relay::BackwardConnection"
28-
resolver: 'overblog_graphql.test.resolver.node::friendsResolver'
28+
resolver: '\Overblog\GraphQLBundle\Tests\Functional\App\Resolver\ConnectionResolver::friendsResolver'
2929

3030
friendConnection:
3131
type: relay-connection

0 commit comments

Comments
 (0)