Skip to content

Commit

Permalink
remove slashes from name
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissm79 committed Aug 28, 2016
1 parent 6e3f010 commit 7bb4815
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Schema/Registrars/ConnectionRegistrar.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ public function getInstance($name, ObjectType $nodeType)
protected function instanceName($name)
{
if ($name instanceof Connection) {
return (new ReflectionClass($name))->getName();
$class = (new ReflectionClass($name))->getName();

return strtolower(snake_case((str_replace('\\', '_', $class))));
}

return $name;
Expand Down

0 comments on commit 7bb4815

Please sign in to comment.