Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mcg-web committed Jan 5, 2022
1 parent 5e82520 commit 1a9b167
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ private function resolveServiceIdAndMethod(ContainerBuilder $container, ?array &
return;
}
[$id, $method] = explode('::', $callback['function'], 2) + [null, null];
if (str_starts_with($id, '\\')) {
$id = ltrim($id, '\\');
}

try {
$definition = $container->getDefinition($id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ User:
friendsBackward:
type: userConnection
argsBuilder: "Relay::BackwardConnection"
resolver: 'overblog_graphql.test.resolver.node::friendsResolver'
resolver: '\Overblog\GraphQLBundle\Tests\Functional\App\Resolver\ConnectionResolver::friendsResolver'

friendConnection:
type: relay-connection
Expand Down

0 comments on commit 1a9b167

Please sign in to comment.