Skip to content

Commit 7bb4815

Browse files
committed
remove slashes from name
1 parent 6e3f010 commit 7bb4815

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Schema/Registrars/ConnectionRegistrar.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ public function getInstance($name, ObjectType $nodeType)
112112
protected function instanceName($name)
113113
{
114114
if ($name instanceof Connection) {
115-
return (new ReflectionClass($name))->getName();
115+
$class = (new ReflectionClass($name))->getName();
116+
117+
return strtolower(snake_case((str_replace('\\', '_', $class))));
116118
}
117119

118120
return $name;

0 commit comments

Comments
 (0)